`parcel build` hangs on a random file
See original GitHub issue🐛 bug report
parcel build
hangs, on a seemingly random file. My problem sounds identical to the one described in https://github.com/parcel-bundler/parcel/issues/6760. Passing the --no-optimize
flag causes the build to succeed. I’ve also, through testing different configurations in my .parcelrc
, discovered that removing the @parcel/transformer-js
transformer allows the build to succeed, too (although the resulting build is unusable). parcel serve
works fine.
My project comprises Elm and TypeScript (no .js
, and literally one .css
file with two lines, both of which are @import
s).
🎛 Configuration
package.json
excerpt
{
...
"engines": {
"node": "^17.3.0"
},
"source": "src/index.html",
"browserslist": "> 0.5%, last 2 versions, not dead",
"pwaManifest": {
...
},
"devDependencies": {
...
"@parcel/packager-raw-url": "^2.2.1",
"@parcel/packager-xml": "^2.2.1",
"@parcel/service-worker": "^2.2.1",
"@parcel/transformer-elm": "^2.2.1",
"elm": "latest-0.19.1",
"parcel": "^2.2.1",
"parcel-config-pwa-manifest": "^0.1.0",
"typescript": "^4.5.4"
...
},
...
}
.parcelrc
{
"extends": ["@parcel/config-default", "parcel-config-pwa-manifest"],
}
🤔 Expected Behavior
parcel build
succeeds without incident.
😯 Current Behavior
parcel build
hangs indefinitely on a random file.
parcel build --no-optimize
succeeds. parcel serve
works fine.
🔦 Context
I just transitioned this project from Webpack 5. Everything has worked swimmingly, except for this!
💻 Code Sample
Unfortunately, the project in which I’m experiencing this issue is private, and I can’t share the source code. I’m also not sure how to narrow the issue down any further than I have, but am more than willing to try if given suggestions on how!
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 2.2.1 |
Node | 17.3.0 |
npm/Yarn | 8.3.0 |
Operating System | macOS Monterey 12.1 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (4 by maintainers)
Top GitHub Comments
👍 Perfect
Upstream swc issue for that terser/lezer problem: https://github.com/swc-project/swc/issues/3366 This was introduced recently when we enabled transpiling of node_modules
Then please also try to simplify the non-Elm parts so that you can share your code