undefined appears when import introduces objects
the following actions make sure there is no problem with the directory
//api/user.js
1
import Http from "@api/base/http";
console.log(Http) //undefined
2
import Http from "@api/a/http";
console.log(Http) //
3
// npm start
import Http from "@api/a/http";
console.log(Http) //undefined
//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)