JSPrintManager icon indicating copy to clipboard operation
JSPrintManager copied to clipboard

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

Open tmilciunas opened this issue 2 years ago • 5 comments

While importing jsprintmanager as shown in https://github.com/neodynamic/JSPrintManager/issues/48, I receive a critical dependency warning:

image

EDIT: Issue persists on v5.0.2

tmilciunas avatar Aug 22 '22 12:08 tmilciunas

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

erviem99 avatar Aug 26 '22 07:08 erviem99

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

maximedeoliveira avatar Oct 17 '22 17:10 maximedeoliveira

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

expirient avatar Feb 14 '23 13:02 expirient

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

henrywoody avatar May 06 '23 23:05 henrywoody

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

fertandil87 avatar Mar 22 '24 20:03 fertandil87