You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run build
> [email protected] build
> parcel build src/index.html --dist-dir dist
× Build failed.
@parcel/packager-xml: XML bundles must only contain one asset
AssertionError [ERR_ASSERTION]: XML bundles must only contain one asset
at Object.package (F:\pet_projects\project_name\node_modules\@parcel\packager-xml\lib\XMLPackager.js:46:23)
at PackagerRunner.package (F:\pet_projects\project_name\node_modules\@parcel\core\lib\PackagerRunner.js:267:27)
at async PackagerRunner.getBundleResult (F:\pet_projects\project_name\node_modules\@parcel\core\lib\PackagerRunner.js:227:20)
at async PackagerRunner.getBundleInfo (F:\pet_projects\project_name\node_modules\@parcel\core\lib\PackagerRunner.js:215:9)
at async PackagerRunner.run (F:\pet_projects\project_name\node_modules\@parcel\core\lib\PackagerRunner.js:126:107)
at async Child.handleRequest (F:\pet_projects\project_name\node_modules\@parcel\workers\lib\child.js:203:9)
🐛 bug report
While trying to build a project which imports two XML files, I get an unexpected AssertionError.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
The build should succeed.
😯 Current Behavior
I get the following error message:
💻 Code Sample
Part of
map.js
:The xml files are located in the
src
folder, while the js files are located insrc/js
.🌍 Your Environment
The text was updated successfully, but these errors were encountered: