Skip to content
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

[BUG] πŸ”„ Building.. ELIFECYCLE  Command failed with exit code 3221225477. #1143

Open
2 tasks done
dougwithseismic opened this issue Dec 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dougwithseismic
Copy link

dougwithseismic commented Dec 14, 2024

What happened?

version: Plasmo 0.89.4
Node 22.
Windows 11

Whilst using node v22, creating a new extension via pnpm create plasmo, the subsequent pnpm 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, running pnpm dev) Plasmo is blocked

On 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 running pnpm dev again. Note how our background.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 run pnpm dev again. I'm not able to put in a PR for this.

//background.ts
export {}

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

> plasmo dev "--verbose"

🟑 0      | Running command: dev
🟣 Plasmo v0.89.4
πŸ”΄ The Browser Extension Framework
πŸ”΅ INFO   | Starting the extension development server...
🟑 1      | Starting dev server on localhost:1012, HMR on localhost:1815...
πŸ”΅ INFO   | Building for target: chrome-mv3
🟑 2      | Creating Manifest Factory...
🟑 3      | Ensure exists: E:\WEB_PROJECTS\__TEMPLATES\turbo-2025\apps\extension\.plasmo
🟑 4      | E:\WEB_PROJECTS\__TEMPLATES\turbo-2025\apps\extension\assets\icon.png found, creating resized icons
🟑 5      | Creating static templates for popup
🟑 6      | Creating static templates for options
🟑 7      | Creating static templates for newtab
🟑 8      | Creating static templates for devtools
🟑 9      | Creating static templates for sidepanel
🟑 10     | {
  messageHandlerList: [],
  externalMessageHandlerList: [],
  portHandlerList: []
}
🟑 11     | Hash changed, updating manifest
🟑 12     | Watching the following files: Set(135) {
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\package.json',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.chrome.local',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.dev.local',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.development.local',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.local',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.chrome',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.dev',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env.development',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\.env',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.chrome.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.development.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.chrome.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.development.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\content.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.chrome.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.development.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.jsx',  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.chrome.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.development.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sandbox.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.chrome.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.chrome.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.development.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.development.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.ts',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.chrome.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.chrome.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.development.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.development.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\background\\index.js',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\popup\\index.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\options\\index.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\devtools\\index.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.chrome.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.development.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\newtab\\index.jsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel\\index.chrome.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel\\index.development.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel\\index.tsx',
  'E:\\WEB_PROJECTS\\__TEMPLATES\\turbo-2025\\apps\\extension\\sidepanel.chrome.jsx',
  ... 35 more items
}
πŸ”΅ INFO   | Loaded environment variables from: []
(node:69984) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
πŸ”„ Building🟑 0      | @plasmohq/parcel-transformer-manifest
🟑 1      | Adding icons
🟑 2      | Adding default_icon
🟑 3      | Adding default_popup
🟑 4      | + Finished transforming manifest
πŸ”„ Building.🟑 0      | @plasmohq/parcel-bundler
🟑 0      | @plasmohq/parcel-runtime Injecting << page-runtime >> for popup.[hash].js ce49a94f30f49edf E:\WEB_PROJECTS\__TEMPLATES\turbo-2025\apps\extension\.plasmo\static\popup.tsx
🟑 1      | @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
πŸ”„ Building.. ELIFECYCLE  Command failed with exit code 3221225477.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@dougwithseismic dougwithseismic added the bug Something isn't working label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant