isomorphic-react icon indicating copy to clipboard operation
isomorphic-react copied to clipboard

TypeError: context.compiler.plugin is not a function

Open dnstld opened this issue 4 years ago • 6 comments

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

dnstld avatar Feb 18 '21 19:02 dnstld

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.

dnstld avatar Feb 20 '21 15:02 dnstld

Changing the webpack version to "4.46.0" you will be able to run the application

mdsbarbieri avatar Mar 31 '21 19:03 mdsbarbieri

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.

Within the project, where you've already run npm install, run the following: npm i webpack@^4 uglifyjs-webpack-plugin@^2

chiich avatar Apr 12 '21 10:04 chiich

Thank you, looks like this is a regression caused by an external version update. Would be happy to accept a PR for this.

danielstern avatar Apr 13 '21 17:04 danielstern

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 :)

aktyz avatar Aug 20 '21 17:08 aktyz

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.

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. ;)

nunotavares avatar Sep 06 '21 14:09 nunotavares