Ask questionscustom-functions-metadata-plugin: doesn't work with clean-webpack-plugin@3.0.0

For the project, if the version of clean-webpack-plugin is updated to version 3.0.0 in package.json

"clean-webpack-plugin": "^3.0.0",

and the import is updated as in,

"npm run build" will not build successfully.


Answer questions akrantz

The change in v3.0.0 to use emit hook seems to interfere with custom-functions-metadata-plugin.

c:\dev\git\Excel-Custom-Functions>npm run build

> excel-custom-functions@2.0.0 build c:\dev\git\Excel-Custom-Functions
> webpack -p --mode production --https false

c:\dev\git\Excel-Custom-Functions\dist\functions.json created for file: c:\dev\git\Excel-Custom-Functions\src\functions\functions.ts
Error: ENOENT: no such file or directory, stat 'c:\dev\git\Excel-Custom-Functions\dist\functions.json'
    at Object.statSync (fs.js:1009:3)
    at c:\dev\git\Excel-Custom-Functions\node_modules\custom-functions-metadata-plugin\lib\customfunctionsplugin.js:46:34

So far, we've just stayed using the older version.


Related questions

No questions were found.
Github User Rank List