Skip to content

Cannot read property 'plugin' of undefined #20

@frockert

Description

@frockert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions