There are some metaphysical problems in the introduction of import.

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)
because sf cannot upload videos, specific operation examples have been uploaded Baidu Cloud
Mar.05,2022

vue project.
the webpack.base.conf.js file in the build file in the root directory, configure alias


your http to use module.exports? Youda said, please use export.default instead of


this error is caused by the introduction of conflicts.

roughly as follows:
introduced the api module into my store module;
introduced store; into the api module

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaeb16-21ed.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaeb16-21ed.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?