-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fails when user's webpack config has html-webpack-plugin-before-html-processing #1217
Comments
Feel free to add it to the list of ignored webpack plugins: react-styleguidist/src/scripts/utils/mergeWebpackConfig.js Lines 13 to 22 in 34f3c83
|
I already have this list in the file react-styleguidist/src/scripts/utils/mergeWebpackConfig.js and yet I am getting this issue. When i run npx styleguidist build , it points to another location node_modules/react-scripts/config/webpack.config.dev.js . Contents of this file is ` const autoprefixer = require('autoprefixer'); // Webpack uses // This is the development configuration.
},
], // Some libraries import Node modules but don't use them in the browser. |
I have fixed the issue. It was because of the version of react. I was using react- 1.5 and upgrading it to react 2.0 solved the issue |
On trying to run this command, I get the following error and not sure how to resolve it
Loading webpack config from:
node_modules/react-scripts/config/webpack.config.dev.js
Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found.
BREAKING CHANGE: There need to exist a hook at 'this.hooks'. To create a compatibility layer for this hook, hook into 'this._pluginCompat'.
(node:32249) DeprecationWarning: Tapable.plugin is deprecated. Use new API on
.hooks
insteadThe text was updated successfully, but these errors were encountered: