JSPrintManager
JSPrintManager copied to clipboard
Next.js - require function is used in a way in which dependencies cannot be statically extracted
While importing jsprintmanager
as shown in https://github.com/neodynamic/JSPrintManager/issues/48, I receive a critical dependency warning:

EDIT: Issue persists on v5.0.2
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
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
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
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
same warning using webpack and the last version of the library "^6.0.3"