Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
This repository was archived by the owner on May 16, 2025. It is now read-only.

TypeError: compiler.plugin is not a function #377

@hotfusion

Description

@hotfusion

Hey, I installed this packages from npm but I am getting an error:

C:\Users\home\applications\konfiq\controllers\node_modules\npm-install-webpack-plugin\src\plugin.js:42
  compiler.plugin("watch-run", this.preCompile.bind(this));
           ^

TypeError: compiler.plugin is not a function
    at NpmInstallPlugin.apply (C:\Users\home\applications\app\controllers\node_modules\npm-install-webpack-plugin\src\plugin.js:42:12)
    at createCompiler (C:\Users\home\applications\app\controllers\node_modules\webpack\lib\webpack.js:76:12)
    at create (C:\Users\home\applications\app\controllers\node_modules\webpack\lib\webpack.js:143:16)
    at webpack (C:\Users\home\applications\app\controllers\node_modules\webpack\lib\webpack.js:167:32)
    at f (C:\Users\home\applications\app\controllers\node_modules\webpack\lib\index.js:72:16)
    at run (C:/Users/home/applications/app/controllers/dist/schema.c.js:324:34)
    at async FSWatcher.<anonymous> (C:/Users/home/applications/app/controllers/dist/schema.c.js:357:21)

Node.js v19.0.0

Not sure why, I followed your instructions but have no success to run it. I am using webpack 5 and windows 10.
Thanks

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