TypeError: compiler.plugin is not a function
hotfusion opened this issue · 0 comments
hotfusion commented
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