Skip to content
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

TypeError: context.compiler.plugin is not a function #54

Open
dnstld opened this issue Feb 18, 2021 · 6 comments
Open

TypeError: context.compiler.plugin is not a function #54

dnstld opened this issue Feb 18, 2021 · 6 comments

Comments

@dnstld
Copy link

dnstld commented Feb 18, 2021

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
Copy link
Author

dnstld commented Feb 20, 2021

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.

@mdsbarbieri
Copy link

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

@chiich
Copy link

chiich commented Apr 12, 2021

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

@danielstern
Copy link
Owner

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

@aktyz
Copy link

aktyz commented Aug 20, 2021

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

@nunotavares
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants