-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
I'm trying to copy some files from node_modules into my dist directory with copy-webpack-plugin but it gives the following error:
> grapesjs-cli build --patch=false
Start building the library...
/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/grapesjs-cli/src/build.js:106
const result = stats.toString(statConf);
^
TypeError: Cannot read properties of undefined (reading 'toString')
at /home/amir/projects/DigiNote/GrapesJsComponents/node_modules/grapesjs-cli/src/build.js:106:34
at /home/amir/projects/DigiNote/GrapesJsComponents/node_modules/webpack/lib/webpack.js:148:8
at /home/amir/projects/DigiNote/GrapesJsComponents/node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/tapable/lib/Hook.js:18:14)
at Cache.shutdown (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/webpack/lib/Cache.js:150:23)
at /home/amir/projects/DigiNote/GrapesJsComponents/node_modules/webpack/lib/Compiler.js:1225:15
at Hook.eval [as callAsync] (eval at create (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.close (/home/amir/projects/DigiNote/GrapesJsComponents/node_modules/webpack/lib/Compiler.js:1218:23)
And this is how I'm using the copy-webpack-plugin:
...
plugins: [
...config.plugins,
new CopyPlugin({
patterns: [
{
from: './node_modules/bootstrap/dist/css/bootstrap.min.css',
to: './dist',
},
],
}),
],
...artf
Metadata
Metadata
Assignees
Labels
No labels