报错提示如下:
修改
方式如下:将上述代码替换成下面的写法
import createHistory from 'history/createBrowserHistory';
import { createBrowserHistory as createHistory } from 'history';
报错提示如下:
修改
方式如下:将上述代码替换成下面的写法
import createHistory from 'history/createBrowserHistory';
import { createBrowserHistory as createHistory } from 'history';