Warning: "Critical dependency: the request of a dependency is an expression"
wildeyes opened this issue · comments
Using latest nextjs, I'm getting Critical dependency: the request of a dependency is an expression
> next build
- warn You have enabled experimental features (outputFileTracingRoot, scrollRestoration) in next.config.js.
- warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
- warn Compiled with warnings
../../../node_modules/.pnpm/web-worker@1.2.0/node_modules/web-worker/cjs/node.js
Critical dependency: the request of a dependency is an expression
- Seems related to #6
- looks similiar to iamakulov/moment-locales-webpack-plugin#43
I'm not yet knowledgable enough about ESM modules and their handling, but will hop by to report if I manage to solve this.
Cheerio