-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding "engines" attribute to package.json causes "External modules are not supported" error #7636
Comments
For the majority of projects, the detection of You need to do "engines": {
"node": ">=14.0"
},
"targets": {
"default": {
"engines": {
"browsers": ">= 50%"
}
}
} We should note this in the docs somehow: parcel-bundler/website#1008 |
vgeorge
added a commit
to developmentseed/project-seed
that referenced
this issue
May 30, 2022
Luna0788
added a commit
to Luna0788/middle.messenger.praktikum.yandex
that referenced
this issue
Aug 22, 2022
gao-sun
added a commit
to logto-io/logto
that referenced
this issue
Nov 7, 2022
david-mears-2
added a commit
to david-mears-2/tf-scenario-generator
that referenced
this issue
Dec 7, 2022
pklaschka
added a commit
to wuespace/telestion-client
that referenced
this issue
Dec 26, 2022
…el build errors Before, while `parcel` (i.e., serving the page) worked without issues, in `parcel build`, the resulting files (if any were generated at all) wouldn't work because of an error saying "External modules are not supported". Refs: parcel-bundler/parcel#7636
fussel178
pushed a commit
to wuespace/telestion-client
that referenced
this issue
Dec 26, 2022
…el build errors Before, while `parcel` (i.e., serving the page) worked without issues, in `parcel build`, the resulting files (if any were generated at all) wouldn't work because of an error saying "External modules are not supported". Refs: parcel-bundler/parcel#7636
ccamel
added a commit
to ccamel/playground-elm
that referenced
this issue
Aug 14, 2023
Seems necessary according to: parcel-bundler/parcel#7636 (comment)
ccamel
added a commit
to ccamel/playground-elm
that referenced
this issue
Aug 14, 2023
Seems necessary according to: parcel-bundler/parcel#7636 (comment)
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 bug report
See #6769
External modules are not supported when building for browser.
There are various reasons to specify the required node engine for development, such as tool chain requirements. Specifying "engines" should not affect the ability to target the browser.
🎛 Configuration (.babelrc, package.json, cli command)
With
engines
removedparcel build ./src/index.html
works, with it present, fails with@parcel/packager-js: External modules are not supported when building for browser
🤔 Expected Behavior
Presence of "engines" in package.json should not affect the build
😯 Current Behavior
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: