After updating to parcel 2.2.1 the build system is flacky. It often fails. It take 2,3,4 runs to make it work.
See original GitHub issue🐛 bug report
After updating to parcel 2.2.1 the build system is flaky. It often fails. It takes 2,3,4 runs to make it work. /c/Program Files/nodejs/npm: line 44: 2128 Segmentation fault “$NODE_EXE” “$NPM_CLI_JS” “$@”
🎛 Configuration (.babelrc, package.json, cli command)
parcel watch src/web/pages/**/*.pug --dist-dir ./ --target public
{
"plugins": [
[
"transform-react-pug",
{
"classAttribute": "className"
}
],
"styled-jsx/babel",
"transform-jsx-css-modules",
"@babel/plugin-transform-runtime"
]
}
🤔 Expected Behavior
It should work the first time.
😯 Current Behavior
After updating to parcel 2.2.1 the build system is flacky. It often fails. It take 2,3,4 runs to make it work. Sometimes it works aftet rimraffing .parcel_cache or npm rebuild, or both.
/c/Program Files/nodejs/npm: line 44: 2128 Segmentation fault “$NODE_EXE” “$NPM_CLI_JS” “$@”
💁 Possible Solution
Sometimes it works aftet rimraffing .parcel_cache or npm rebuild, or both.
🔦 Context
💻 Code Sample
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 2.2.1 |
Node | v16.13.2 |
npm/Yarn | npm 8.1.2 |
Operating System | Windows 10 |
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:32 (6 by maintainers)
Top Results From Across the Web
Bundling and Building with Parcel - Beginner JavaScript
Wes is going to show us how to do that using Parcel. He will be using Parcel One in this lesson, but Parcel...
Read more >EasyBuild v4.6.2 documentation (release 20221021.0)
The latest version of EasyBuild provides support for building and installing 2,798 different software packages, including 37 different (compiler) toolchains ...
Read more >Migration - Parcel
The first thing to note when upgrading from Parcel 1 to Parcel 2 is that the npm package name has changed from parcel-bundler...
Read more >Parcel Build throws the error [Error: Error opening directory]
sometimes, even when I run the script "start": "parcel ./src/index.html" parcel do not create the dist folder. My full package.json : { "name": ......
Read more >IDV User Guide
When I first run IDV through Web Start, it asks me to accept a certificate? What should I do? •. How can I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
I think we narrowed this down to an upgrade of napi-rs in the
@parcel/source-map
package, which was released sometime after Parcel 2.2.1. I still don’t know the exact root cause, but for now I’ve reverted this upgrade and published@parcel/source-map
v2.0.2. See https://github.com/parcel-bundler/source-map/pull/91.You’ll need to remove
@parcel/source-map
2.0.1 from your lock file and re-install to get the upgrade. Please comment whether this works for you. Apologies again for the issue, and thanks for your patience while we track it down.I have 4 students hitting this bug tonight.