Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js - require function is used in a way in which dependencies cannot be statically extracted #49

Open
tmilciunas opened this issue Aug 22, 2022 · 5 comments

Comments

@tmilciunas
Copy link

tmilciunas commented Aug 22, 2022

While importing jsprintmanager as shown in #48, I receive a critical dependency warning:

image

EDIT: Issue persists on v5.0.2

@erviem99
Copy link

erviem99 commented Aug 26, 2022

I have the same problem in Angular 13. If is very annoying because the Angular Live Development Server is getting messed up because of this.
In my case it is:

./node_modules/jsprintmanager/JSPrintManager.js:12:93-94 - Warning: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

@maximedeoliveira
Copy link

I have the same problem. Any way to solve this ?

WARNING in ./node_modules/.pnpm/[email protected]/node_modules/jsprintmanager/JSPrintManager.js 2:482-483

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

@expirient
Copy link

The same warning, Angular 14

[webpack-dev-server] WARNING in ./node_modules/jsprintmanager/JSPrintManager.js 12:93-94 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

@henrywoody
Copy link

Same problem in React 18 (with Webpack) with Node 16.2 using JSPrintManager v5.0.4:

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ../../node_modules/jsprintmanager/JSPrintManager.js 12:93-94
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

@fertandil87
Copy link

same warning using webpack and the last version of the library "^6.0.3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants