When I try to build a plugin with 3.5-dev, I get an error ' ERROR No Webpack chunks have be added to the ZIP archive.`. Any idea why? I can build in 3.4.6 OK.
This is on Win11.
There is no zip file is created.
When I first build the dev environment, npm run serve
runs without errors.
After trying to build the plugin: If I try npm run serve
again, I get the following error. It seems that the act of trying to build a plugin changes something ...
C:\Users\stuar\Github\DWCv3.5-dev>npm run serve
> duetwebcontrol@3.5.2-rc.1 serve
> vue-cli-service serve
INFO Starting development server...
ERROR AssertionError [ERR_ASSERTION]: Missing entry point (index.js, index.ts, dwc-src/index.js, dwc-src/index.ts, src/index.js, src/index.ts) in plugin DuetLapse3
AssertionError [ERR_ASSERTION]: Missing entry point (index.js, index.ts, dwc-src/index.js, dwc-src/index.ts, src/index.js, src/index.ts) in plugin DuetLapse3
at C:\Users\stuar\Github\DWCv3.5-dev\webpack\lib\auto-imports-plugin.js:54:17
at Hook.eval [as call] (eval at create (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:9:1)
at Hook.CALL_DELEGATE [as _call] (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\node_modules\tapable\lib\Hook.js:14:14)
at createCompiler (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\lib\webpack.js:86:28)
at create (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\lib\webpack.js:145:16)
at webpack (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\lib\webpack.js:173:32)
at f (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\webpack\lib\index.js:73:16)
at serve (C:\Users\stuar\Github\DWCv3.5-dev\node_modules\@vue\cli-service\lib\commands\serve.js:185:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Full output from plugin build attempt below
C:\Users\stuar\Github\DWCv3.5-dev>cmd.exe /c npm run build-plugin "../DuetLapse3/pluginv3.5-dev"
> duetwebcontrol@3.5.2-rc.1 build-plugin
> node scripts/build-plugin.js ../DuetLapse3/pluginv3.5-dev
All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.
/ Building for production...[BABEL] Note: The code generator has deoptimised the styling of C:\Users\stuar\Github\DWCv3.5-dev\node_modules\vuetify\dist\vuetify.js as it exceeds the max of 500KB.
- Building for production...
DONE Compiled successfully in 236835ms 1:56:47 PM
File Size Gzipped
dist\js\monaco-editor.54de9d18.js 4748.92 KiB 1058.10 KiB
dist\js\app.fc942cc4.js 3764.19 KiB 816.44 KiB
dist\js\GCodeViewer.2c2d2e4a.js 2699.53 KiB 590.23 KiB
dist\js\HeightMap.0a7868ce.js 1464.97 KiB 316.40 KiB
dist\js\OnScreenKeyboard.08821710.js 106.99 KiB 33.03 KiB
dist\js\InputShaping.3edf6046.js 81.09 KiB 17.29 KiB
dist\js\ObjectModelBrowser.b7c78d60.js 25.50 KiB 6.78 KiB
dist\workbox-6567b62a.js 14.11 KiB 4.93 KiB
dist\js\monaco-json-worker.1cd76b1b.js 2.80 KiB 1.01 KiB
dist\js\monaco-worker.6d781179.js 2.79 KiB 1.00 KiB
dist\service-worker.js 2.16 KiB 1.01 KiB
dist\css\app.1e72278e.css 768.96 KiB 107.11 KiB
dist\css\monaco-editor.bda37737.css 112.91 KiB 18.12 KiB
dist\css\GCodeViewer.5c28e225.css 14.26 KiB 2.96 KiB
dist\css\ObjectModelBrowser.562feac3.css 6.60 KiB 1.24 KiB
dist\css\OnScreenKeyboard.425af7fa.css 3.53 KiB 1.13 KiB
dist\css\HeightMap.6241cfd5.css 0.49 KiB 0.24 KiB
dist\css\InputShaping.bd3578ab.css 0.44 KiB 0.24 KiB
Images and other types of assets omitted.
Build at: 2024-06-10T19:56:48.845Z - Hash: 030dae31db75d394 - Time: 236835ms
DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
ERROR No Webpack chunks have be added to the ZIP archive. Make sure it is imported by src/plugins/index.ts