profile
viewpoint

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

For the https://github.com/OfficeDev/Excel-Custom-Functions 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 https://github.com/OfficeDev/Excel-Custom-Functions/commit/e02646a8ffcccf3412a3be62ccf26c3269dd08ba,

"npm run build" will not build successfully.

OfficeDev/Office-Addin-Scripts

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.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List