Closed Hongbusi closed 2 years ago
Can you provide reproducible example? I think you try to wrapper already wrapped function
Can you provide reproducible example? I think you try to wrapper already wrapped function
Thanks for your answer, I think so too.
But one thing I can't understand is that the same code, why is it normal in v0.8.0, but the latest version will have this problem?
Because we do refactor and change some logic
Because we do refactor and change some logic
To upgrade to the latest version, are there any good solutions or ideas for this problem?
Thank you!
Please provide reproducible example, I don't know your code, so hard to say what is wrong
Please provide reproducible example, I don't know your code, so hard to say what is wrong
Project configuration:
Webpack configuration:
Old webpack configuration:
Why you don't parse jquery
?
Why you don't parse
jquery
?
All noParse modules in the configuration file(https://github.com/edusoho/edusoho/blob/master/webpack.config.js#L41) will report the above error.
How you run webpack? I can't found scripts
How you run webpack? I can't found
scripts
By executing node api:
Sorry, I can't run your configuration without problems, I got:
[webpack-cli] Failed to load '/home/evilebottnawi/IdeaProjects/es-webpack-engine/src/webpack.dev.js' config
[webpack-cli] Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
- options.patterns should be a non-empty array.
Using webpack --config src/webpack.dev.js
, please provide steps to reproducible the problem
Thanks for taking the time to help me figure this out.
Steps to reproduce:
npm link
.dev
in edusoho introduces es-webpack-engine (/dist/ -> /src/).yarn dev
.Sorry to bother you again, might need your help to provide some ideas. @alexander-akait
@Hongbusi Can you reduce complex of the reproducible? I still can't run your example
Solved this problem in other ways. Also thank you very much for the help you provided me. @alexander-akait
Bug report
Actual Behavior
In
webpack@5.68.0
+imports-loader@3.1.1
can not work.In webpack.config.js:
In
webpack@4.41.2
+imports-loader@0.8.0
normal work.In webpack.config.js:
Please paste the results of
npx webpack-cli info
here, and mention other relevant information