Closed hackerxian closed 4 years ago
Stumbled on a different instantiation of the same bug: due to the implementation of get-webpack-version.js
, the webpack configuration file setting in PyCharm (and I'm guessing WebStorm) is failing. Ironically, all related software is developed by JetBrains. Changing the require.main
by require
in the referenced file fixes the problem for me.
Made a PR for that here https://github.com/JetBrains/svg-sprite-loader/pull/382
Should be fixed in svg-sprite-loader@4.2.6
Do you want to request a feature, report a bug or ask a question? report a bug What is the current behavior?
My webpack config
If this is a feature request, what is motivation or use case for changing the behavior?
Please tell us about your environment:
Other information
get-webpack-version.js
userequire
replacerequire.main
, it works.