question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARNING in ./node_modules/express/lib/view.js

See original GitHub issue

When 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:open
  • Created 5 years ago
  • Reactions:8
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

39reactions
ajay-whizcommented, Jul 10, 2019

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()], }

13reactions
fraguecommented, Nov 23, 2020

What if I want express to be bundled along with my node app?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found