import 引入對象出現(xiàn)undefined以下操作確定目錄沒有問題//api/user.js步驟1import Http from '@api/base/http';console.log(Http) //undefined步驟2import Http from '@api/a/http';console.log(Http) //正常步驟3//重新運行 npm startimport Http from '@api/a/http';console.log(Http) //undefined//出現(xiàn)undefined時瀏覽器輸出的錯誤信息Uncaught TypeError: Super expression must either be null or a function, not undefined
at exports.default (inherits.js?3dfd:21)
at eval (user.js?9c35:6) //api/user.js
at eval (user.js?9c35:6)
at Object../src/api/user.js (app.js:2829)
at __webpack_require__ (app.js:708)
at fn (app.js:113)
at eval (user.js?7719:1)
at Object../src/stores/model/user.js (app.js:3173)
at __webpack_require__ (app.js:708)
at fn (app.js:113)由于sf無法上傳視頻,具體操作示例已上傳百度云
import引入出現(xiàn)玄學(xué)問題??
幕布斯6054654
2019-01-05 22:25:54