npm run dev之后,打开页面是空白的。
git bash里面没报错。
谷歌开发工具显示如下错误代码,谁清楚这是因为哪里出错了导致的?
Uncaught TypeError: (0 , _router2.default) is not a function
at eval (eval at <anonymous> (app.js:732), <anonymous>:27:22)
at Object.<anonymous> (app.js:732)
at __webpack_require__ (app.js:556)
at fn (app.js:87)
at Object.<anonymous> (app.js:587)
at __webpack_require__ (app.js:556)
at app.js:579
at app.js:582
我猜是你import写错了。
例如把
import {x} from xxx
写成import x from xxx
了。