mauricedb / server-side-rendering-with-create-react-app

Server-side Rendering with Create-React-App
https://medium.com/@maurice.de.beijer/react-server-side-rendering-with-webpack-c4da49c87c34
MIT License
32 stars 16 forks source link

SSR- not Build #4

Open yogeshR5 opened 5 years ago

yogeshR5 commented 5 years ago

@mauricedb
When i try to run npm run ssr in terminal i got this error ::

Error: 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'. at Compilation.plugin (/home/dev/Music/Gometoo/gometoo-app/node_modules/webpack/node_modules/tapable/lib/Tapable.js:69:9)

my package.json have "ssr": "cross-env NODE_ENV=production webpack --config ./webpack.ssr.config.js"

mauricedb commented 5 years ago

Hi @yogeshR5

Not sure what is causing that. I just did a clone into a clean folder, npm install and everything worked just fine.

image