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

webpack issue 'require function is used in a way in which dependencies cannot be statically extracted' #49

Closed
stheine opened this issue Jan 22, 2021 · 2 comments

Comments

@stheine
Copy link

stheine commented Jan 22, 2021

Hi,

I'm using html-entities in a ui application, generated by webpack. when I update from 1.3.1 to 2.0.2, webpack complains with the error message:

WARNING in ./node_modules/html-entities/lib/index.js 13:93-94
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./example/src/index.jsx 1:182-216

can you help on this issue?

Regards
stheine

@mdevils
Copy link
Owner

mdevils commented Jan 22, 2021

Hello @stheine. Thanks for reporting the problem. I've pushed a fix for this issue, version 2.0.4.

@stheine
Copy link
Author

stheine commented Jan 23, 2021

fix confirmed. thanks for the quick action!

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

2 participants