Skip to content

TypeError: chunk.isInitial is not a function #8

@GMartigny

Description

@GMartigny

Hello,

I tried using the plugin, but got an error saying that "chunk.isInitial is not a function".

I'm using:

node: 12.9.0
webpack: 4.39.2
webpack-cli: 3.3.7

My config is the same as the readme example:

const ButternutWebpackPlugin = require("butternut-webpack-plugin").default;

module.exports = {
    plugins: [
        new ButternutWebpackPlugin({}),
    ],
};

With nothing else because I take advantage of default values

I guess this is an incompatibility with webapck@4 because I also have a warning "DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions