You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've ran into an issue when trying to run a React application with Webpack 5. I receive the warning
WARNING in ../../../.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip/node_modules/import-fresh/index.js 32:31-48
Critical dependency: the request of a dependency is an expression
According to here this is caused by something like:
letvar1=someCall();require(var1);// webpack can't determine var1 value
Here is the location in your source code which could be the problem.
I also get a similar error when bundling with webpack. I am using webpack with swc
webpack version - 5.75
node - 18.12.1
Error: WARNING in ./node_modules/import-fresh/index.js 32:31-48 Critical dependency: the request of a dependency is an expression
For me this error is coming through packages following packages:
Import trace for requested module:
./node_modules/import-fresh/index.js
./node_modules/cosmiconfig/dist/loaders.js
./node_modules/cosmiconfig/dist/index.js
./node_modules/@databases/pg-config/lib/index.js
./node_modules/@databases/pg/lib/index.js
./src/lib/database.tsx
./src/app/page.tsx
⚠ ./node_modules/cosmiconfig/dist/loaders.js
Critical dependency: the request of a dependency is an expression
Uh oh!
There was an error while loading. Please reload this page.
I've ran into an issue when trying to run a React application with Webpack 5. I receive the warning
According to here this is caused by something like:
Here is the location in your source code which could be the problem.
The text was updated successfully, but these errors were encountered: