isomorphic-react
isomorphic-react copied to clipboard
TypeError: context.compiler.plugin is not a function
Hello @danielstern
I'm getting this error trying to run the app. Can you help me out, please? Thanks
npm -v: 6.14.10
node -v: v14.15.4
npm run start-dev
> [email protected] start-dev /Users/denistoledo/Dev/testing-react-applications-with-jest
> cross-env NODE_ENV=development babel-node server --useServerRender=false --useLiveData=false
Warning: Please use `require("history").createMemoryHistory` instead of `require("history/createMemoryHistory")`. Support for the latter will be removed in the next major release.
/Users/denistoledo/Dev/testing-react-applications-with-jest/node_modules/webpack-dev-middleware/lib/Shared.js:233
context.compiler.plugin("done", share.compilerDone);
^
TypeError: context.compiler.plugin is not a function
Also, it is missing one dependency uglifyjs-webpack-plugin. Required on the webpack.config.dev.babel.js.
VTW, I'm playing around your testing course on Pluralsight.
Changing the webpack version to "4.46.0" you will be able to run the application
Also, it is missing one dependency
uglifyjs-webpack-plugin. Required on thewebpack.config.dev.babel.js. VTW, I'm playing around your testing course on Pluralsight.
Within the project, where you've already run npm install, run the following:
npm i webpack@^4 uglifyjs-webpack-plugin@^2
Thank you, looks like this is a regression caused by an external version update. Would be happy to accept a PR for this.
Hi,
Happy to contribute, how to resolve git error:
remote: Permission to danielstern/isomorphic-react.git denied to aktyz. fatal: unable to access 'https://github.com/danielstern/isomorphic-react.git/': The requested URL returned error: 403
edit: after @chiich advice the app is working as a charm :)
Also, it is missing one dependency
uglifyjs-webpack-plugin. Required on thewebpack.config.dev.babel.js. VTW, I'm playing around your testing course on Pluralsight.Within the project, where you've already run
npm install, run the following:npm i webpack@^4 uglifyjs-webpack-plugin@^2
Thank you chiich. It was the first thing I tried and it worked. ;)