WARNING in ./node_modules/express/lib/view.js
See original GitHub issueWhen yarn build:
WARNING in ./node_modules/express/lib/view.js
81:13-25 Critical dependency: the request of a dependency is an expression
@ ./node_modules/express/lib/view.js
@ ./node_modules/express/lib/application.js
@ ./node_modules/express/lib/express.js
@ ./node_modules/express/index.js
@ ./express/server.js
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:22 (1 by maintainers)
Top Results From Across the Web
Webpack and Express - Critical Dependencies Warning
I'm really confused. The OP says the file is "webpack.config.*ts*" (emphasis mine), but everything else I see says this should be a .js...
Read more >Search - appsloveworld.com
[Solved]-Webpack WARNING in ./node_modules/express/lib/view.js Critical dependency: the request of a dependency is an expression-mongodb.
Read more >Node.js | WebStorm Documentation - JetBrains
Node.js is a lightweight runtime environment for executing JavaScript outside the browser, for example on the server or in the command line.
Read more >ts-loader - npm
npm version build and test Downloads node version code style: prettier ... You can also pass a path string to locate a js...
Read more >the request of a dependency is an expression - You.com
The following code works for me. Edit vue.config.js and add webpack config: configureWebpack: { module: { exprContextCritical: false } }. Open side panel....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Use webpack-node-externals, I mean please add following code in your webpack.config.js
const nodeExternals = require(‘webpack-node-externals’);
{ target: ‘node’, externals: [nodeExternals()], }
What if I want express to be bundled along with my node app?