developit / web-worker

Consistent Web Workers in browser and Node.

Home Page:https://npm.im/web-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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