The request of a dependency is an expression?

vue project, just connected node and mongo reported an error in npm run dev

Terminal:

WARNING Compiled with 1 warnings 11:51:04

warning in. / server/node_modules/express/lib/view.js

81:13-25 Critical dependency: the request of a dependency is an expression

Page:

manually deleted node--moduels and reinstalled it is still a problem. What should I do? Ask for a more detailed answer

Jul.27,2021

have you solved the problem?


after vue-cli installs express, the startup project reports this error. After configuring the following code, my project can be accessed normally.
module.exports = {
configureWebpack: {

externals: {  
  express: 'express' 
}

}
}

reference sites:
1, https://www.cnblogs.com/fanqs.;
2, https://stackoverflow.com/que.


image

bug require eslint==
...
Menu