Open scoopandrun opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
We observed the same issue in version 2.8.3
I'm having the same problem. I've got two links in an html document to the same destination but with a different query string appended to each url, e.g. :
?product-id=123456
?product-id=789012
any help would be much appreciated
I'm getting:
Build failed.
Error: Bundles must have unique name. Conflicting names:
It seems to work with full URL's not relative ones
Same for me, this has been an ongoing bug with parcelJs that hasn't been solved yet. Is there a workaround @mischnic
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
🐛 bug report
When building/watching/serving a web application with links pointing to the same page, but including query parameters, Parcel tries to create multiple bundles for the same page, but fails due to name conflict.
This simple example will fail to build due to bundle name conflict:
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Parcel should create only 1 bundle and the building process should complete successfully.
😯 Current Behavior
Building fails due to HTML pages being treated as different bundles with the same name when there should only be a single bundle.
The error below is taken from the reproducible example.
💁 Possible Solution
Unless query parameters play an important role in creating separate bundles, Parcel should ignore them in links.
🔦 Context
💻 Code Sample
Simple example: https://github.com/ScoopAndrun/parcel-issue
🌍 Your Environment