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

Warning msg: 'This seems to be a pre-built javascript file' #1170

Closed
ccamusso opened this issue Jul 5, 2018 · 8 comments
Closed

Warning msg: 'This seems to be a pre-built javascript file' #1170

ccamusso opened this issue Jul 5, 2018 · 8 comments

Comments

@ccamusso
Copy link

ccamusso commented Jul 5, 2018

Is possibile remove this warning on project startup?

Warning in ./~/xlsx/jszip.js
Critical dependencies:
25:159-166 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/xlsx/jszip.js 25:159-166

I using "xlsx": "^0.13.1"

@SheetJSDev
Copy link
Contributor

What webpack version are you running? The webpack demo does not show that message when running against 3.4.1 or 4.15.1. (clone the repo, cd demos/webpack and make)

Can you share a small demo project that triggers the error?

@ccamusso
Copy link
Author

ccamusso commented Jul 17, 2018

I have a very old webpack version: 1.14.0

@visualhu
Copy link

visualhu commented Sep 4, 2018

I have the same problem, I try externals: {'./jszip': 'jszip'} to webpack config , but it remain.

@iHadDream
Copy link

I have the same problem

@iHadDream
Copy link

I have the same problem

#565 can resolve this question

@dawangong
Copy link

me too, help ~ I try to use noParse in webpack config, but it don't work.
—— webpack version: 1.12.14

@dawangong
Copy link

My final webpack config is:
module: { noParse: [/jszip.js$/]}
This configuration solves my problem.

@reviewher
Copy link
Contributor

see #285 (comment) (which is identical to the recommendation in this thread).

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