Quasar: Multiple chunks emit assets to the same filename

Created on 10 Jan 2020  路  12Comments  路  Source: quasarframework/quasar

Nobody seems to be looking at the other issue that was previous closed due to lack of reproducibility, so I'm opening this new one to make sure it gets looked at.

This error occurs during the production build step.

ERROR in chunk 8daa19ae
js/8daa19ae.8a00ee1b.js
Conflict: Multiple chunks emit assets to the same filename js/8daa19ae.8a00ee1b.js (chunks 8daa19ae and 8daa19ae)

app:build [FAIL] Build failed with errors. Check log above. +0ms

I prepared a smallish project with the build issue. The packages are part of the issue so this has the dependencies included. I'm using a private package that seems to be at the heart of the issue and you can't just install that with npm/yarn so I've bundled it all up here.

https://www.sharpsoftware.dev/dl/quasar/buildIssueDebug.tar.gz

Extract and try to build and it should produce the above error.

bug

Most helpful comment

Fix will be available in "@quasar/app" v1.5.0.

All 12 comments

Yeah - I am seeing something similar, thanks for reproducing it! My setup uses a yarn workspace and I am linking to app extensions that are not published on NPM either.

Running quasar build -m ssr with your attached project results in:

ERROR in chunk 8daa19ae
js/8daa19ae.7552df51.js
Conflict: Multiple chunks emit assets to the same filename js/8daa19ae.7552df51.js (chunks 8daa19ae and 8daa19ae)


 app:build [FAIL] Build failed with errors. Check log above

I was looking at the initial ticket just yesterday :) Sorry it takes so long, but a lot on the plate at the moment. It will get fixed, just hang in there for a bit longer.

Before I look at the reproduction repo, some info: the chunk names are generated based on their content. So, do you have duplicates?

@bmansfie I looked at the tar.gz, but seems incomplete. I get missing authModule on it.

ERROR in ./src/boot/auth.js
Module not found: Error: Can't resolve 'authModule/boot' in '/Users/Razvan/Downloads/quasarBuildIssueDebug/src/boot'
 @ ./src/boot/auth.js 1:0-43 2:15-27
 @ ./.quasar/client-entry.js
 @ multi ./.quasar/client-entry.js

ERROR in ./src/router/routes.js
Module not found: Error: Can't resolve 'authModule/routes' in '/Users/Razvan/Downloads/quasarBuildIssueDebug/src/router'
 @ ./src/router/routes.js 3:32-60
 @ ./src/router/index.js
 @ ./.quasar/app.js
 @ ./.quasar/client-entry.js
 @ multi ./.quasar/client-entry.js

don't run yarn @rstoenescu

@nothingismagick that can't change anything. Imported files are still missing (authModule/boot, authModule/routes)... :|

just unzip and place in node_modules

Are you two working together?

No, but I am facing a similar situation and I was able to replicate with his repo. Would love to have this sorted.

Fix will be available in "@quasar/app" v1.5.0.

@bmansfie thanks for supplying a reproducible case
@nothingismagick thanks for pointing out the authModule was already in node_modules and no yarn/npm install was necessary

Excellent :)

Was this page helpful?
0 / 5 - 0 ratings