[BUG] π Building..βELIFECYCLEβ Command failed with exit code 3221225477. #1143
Open
2 tasks done
Labels
bug
Something isn't working
What happened?
version: Plasmo 0.89.4
Node 22.
Windows 11
Whilst using node v22, creating a new extension via
pnpm create plasmo
, the subsequentpnpm dev
command will error out with exit code 3221225477. The build will not finish and extension development cannot begin. On windows, core functionality (e.g. using an src folder, runningpnpm dev
) Plasmo is blockedOn debugging with
pnpm dev --verbose
, the build fails on this step π@plasmohq/parcel-runtime Injecting << background-service-runtime >> for plasmo-default-background.[hash].js 9bbd315463ce095a E:\WEB_PROJECTS\__TEMPLATES\turbo-2025\node_modules\.pnpm\@[email protected]\node_modules\@plasmohq\parcel-transformer-manifest\runtime\plasmo-default-background.ts
Fixes
Two fixes here. Both could be better.
A. Downgrade node to
20
. Node 22 is the culprit.OOOOR B. This issue can be reliably overcome by creating
background.ts
within the root of my extension, and runningpnpm dev
again. Note how ourbackground.ts
skips the cloning\node_modules\@plasmohq\parcel-transformer-manifest\runtime\plasmo-default-background.
.n.b. Fix B doesn't work with the
--with-src
example :(Next Steps
The fix is to create
background.ts
at root, with an empty export, and runpnpm dev
again. I'm not able to put in a PR for this.PS. Haven't checked if this is related to to #1142
Version
Latest 0.89.4
What OS are you seeing the problem on?
Windows
Code of Conduct
The text was updated successfully, but these errors were encountered: