Segfault error when building

Hey @lab, I've had this error for the past 2 days.
πŸ”΅ INFO | Loaded environment variables from: []
🟑 0 | @plasmohq/parcel-transformer-manifest
🟑 1 | Adding icons
🟑 2 | Adding default_icon
🟑 3 | Adding default_popup
🟑 4 | Handling background scripts
🟑 5 | Handling background service worker
[1] 34458 segmentation fault pnpm run dev --verbose
πŸ”΅ INFO | Loaded environment variables from: []
🟑 0 | @plasmohq/parcel-transformer-manifest
🟑 1 | Adding icons
🟑 2 | Adding default_icon
🟑 3 | Adding default_popup
🟑 4 | Handling background scripts
🟑 5 | Handling background service worker
[1] 34458 segmentation fault pnpm run dev --verbose
I did some digging and it looks like it's because of a dependency in parcel (lmdb). Here is a post that I think is related to the issue https://github.com/parcel-bundler/parcel/issues/7702 I'm unable to run, dev, build or publish. The error seemingly happened out of the blue. Can you provide any help. I'm running this on an M2 Macbook Air if that helps
GitHub
Parcel 2.3.1, unknown reason segmentation fault on first build on m...
πŸ› bug report πŸŽ› Configuration (.babelrc, package.json, cli command) platform: node 17.5.0 aarch64, macos 12.2 apple m1 package.json: { "private": true, "source": "src/index....
5 Replies
lab
labβ€’16mo ago
The only way this can be debugged IMO, is to remove some package you're importing and see which one's causing the issue
ObinnaAka
ObinnaAkaOPβ€’15mo ago
I was just able to fix this and as suspected, it's because of Parcel. I cloned the plasmo repo and built it locally. Then I downgraded all parcel versions to 2.8.3 (from 10 months ago). After a bit more finnagling with my repo, I was able to get it to build again. For now, I'll keep developing with my local version of plasmo, but in the future is a fix possible, either through a downgrade of parcel or some other workaround?
lab
labβ€’15mo ago
This is tricky... the latest parcel version fixed some issue, and also caused this issue due to the use of the new resolver...
lab
labβ€’15mo ago
One way to override parcel core is to do this: https://github.com/PlasmoHQ/plasmo/issues/661#issuecomment-1669759831
GitHub
"Could not resolve bundle with id" [BUG] Β· Issue #661 Β· PlasmoHQ/p...
What happened? A bug happened! I've built an extension, and I'm getting this error when running the extension - "Could not resolve bundle with id" Version Latest What OS are you s...
ObinnaAka
ObinnaAkaOPβ€’10mo ago
4 months after, but thank you for this fix! I used overrides (i use pnpm) to solve this. Here are the overrides I had to use
"pnpm": {
"overrides": {
"@parcel/runtime-js": "2.8.3",
"@parcel/core": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/package-manager": "2.8.3",
"@parcel/reporter-dev-server": "2.8.3",
"@parcel/resolver-default": "2.8.3",
"@parcel/transformer-html": "2.8.3",
"@parcel/transformer-posthtml": "2.8.3",
"@parcel/transformer-babel": "2.8.3",
"@parcel/transformer-react-refresh-wrap": "2.8.3",
"@parcel/transformer-image": "2.8.3",
"@parcel/transformer-postcss": "2.8.3",
"@parcel/transformer-js": "2.8.3",
"@parcel/transformer-css": "2.8.3",
"@parcel/transformer-inline-string": "2.8.3",
"@parcel/transformer-json": "2.8.3",
"@parcel/namer-default": "2.8.3",
"@parcel/runtime-service-worker": "2.8.3",
"@parcel/packager-raw": "2.8.3",
"@parcel/packager-js": "2.8.3",
"@parcel/packager-html": "2.8.3",
"@parcel/packager-css": "2.8.3",
"@parcel/optimizer-image": "2.8.3",
"@parcel/optimizer-css": "2.8.3",
"@parcel/optimizer-htmlnano": "2.8.3",
"@parcel/cache": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/events": "2.8.3",
"@parcel/graph": "2.8.3",
"@parcel/hash": "2.8.3",
"@parcel/logger": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"@parcel/watcher": "2.2.0",
"@parcel/workers": "2.8.3",
"@parcel/compressor-raw": "2.8.3",
"@parcel/config-default": "2.8.3",
"@parcel/optimizer-data-url": "2.8.3",
"@parcel/reporter-bundle-buddy": "2.8.3",
"@parcel/transformer-graphql": "2.8.3",
"@parcel/transformer-less": "2.8.3",
"@parcel/transformer-raw": "2.8.3",
"@parcel/transformer-sass": "2.8.3",
"@parcel/transformer-svg-react": "2.8.3",
"@parcel/transformer-worklet": "2.8.3"
}
},
"pnpm": {
"overrides": {
"@parcel/runtime-js": "2.8.3",
"@parcel/core": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/package-manager": "2.8.3",
"@parcel/reporter-dev-server": "2.8.3",
"@parcel/resolver-default": "2.8.3",
"@parcel/transformer-html": "2.8.3",
"@parcel/transformer-posthtml": "2.8.3",
"@parcel/transformer-babel": "2.8.3",
"@parcel/transformer-react-refresh-wrap": "2.8.3",
"@parcel/transformer-image": "2.8.3",
"@parcel/transformer-postcss": "2.8.3",
"@parcel/transformer-js": "2.8.3",
"@parcel/transformer-css": "2.8.3",
"@parcel/transformer-inline-string": "2.8.3",
"@parcel/transformer-json": "2.8.3",
"@parcel/namer-default": "2.8.3",
"@parcel/runtime-service-worker": "2.8.3",
"@parcel/packager-raw": "2.8.3",
"@parcel/packager-js": "2.8.3",
"@parcel/packager-html": "2.8.3",
"@parcel/packager-css": "2.8.3",
"@parcel/optimizer-image": "2.8.3",
"@parcel/optimizer-css": "2.8.3",
"@parcel/optimizer-htmlnano": "2.8.3",
"@parcel/cache": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/events": "2.8.3",
"@parcel/graph": "2.8.3",
"@parcel/hash": "2.8.3",
"@parcel/logger": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"@parcel/watcher": "2.2.0",
"@parcel/workers": "2.8.3",
"@parcel/compressor-raw": "2.8.3",
"@parcel/config-default": "2.8.3",
"@parcel/optimizer-data-url": "2.8.3",
"@parcel/reporter-bundle-buddy": "2.8.3",
"@parcel/transformer-graphql": "2.8.3",
"@parcel/transformer-less": "2.8.3",
"@parcel/transformer-raw": "2.8.3",
"@parcel/transformer-sass": "2.8.3",
"@parcel/transformer-svg-react": "2.8.3",
"@parcel/transformer-worklet": "2.8.3"
}
},
Want results from more Discord servers?
Add your server