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

Cannot read property 'plugin' of undefined #20

Open
frockert opened this issue Mar 5, 2019 · 0 comments
Open

Cannot read property 'plugin' of undefined #20

frockert opened this issue Mar 5, 2019 · 0 comments

Comments

@frockert
Copy link

frockert commented Mar 5, 2019

Hey there,
I am pretty new to webpack and jest and I am trying to add tests to a new codebase I just started contributing to.

I followed the docs for the set up but when I run webpack && jest pointing to my config file I get the following issue

        compiler.parser.plugin('call jest.dontMock', resolveArgument);
                        ^

TypeError: Cannot read property 'plugin' of undefined
    at JestpackPlugin.apply (/node_modules/jestpack/Plugin.js:34:25)
    at plugins.forEach.plugin (/usr/local/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/ResolverFactory.js:276:10)
    at Array.forEach (<anonymous>)```
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

1 participant