-
-
Notifications
You must be signed in to change notification settings - Fork 305
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] pnpm build Failed to resolve #750
Comments
I'm having the same issue with yarn berry. |
Also have had this problem for a bit but just got to creating a reproduction. When using the
OS: Arch Linux 6.4.12 |
Update: cracked it on my end. On both the repro above and my own project, the |
I think it's either the Also try cleaning up the |
In my case, the problem was that I had "engines": {
"node": ">=18"
} And there is an issue in parcel-bundler describing this exact problem: So I just had to add the "engines": {
"node": ">=18"
},
"targets": {
"default": {
"engines": {
"browsers": "last 2 versions, not dead, > 0.2%"
}
}
} |
me too |
``` yarn build yarn run v1.22.19 $ plasmo build 🟣 Plasmo v0.83.0 🔴 The Browser Extension Framework 🔵 INFO | Prepare to bundle the extension... 🔵 INFO | Loaded environment variables from: [] 🔴 ERROR | Failed to resolve '../../../background' from './.plasmo/static/background/index.ts' 🔴 EXIT | 👋 Good bye and have a great day! error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` see PlasmoHQ/plasmo#750 (comment)
me too, think you very much |
So I am not alone. This issue is closed on Parcel without an explanation... Removing the |
remove "engines" config in package.json fixed my issue |
What happened?
This prompts when pnpm build, but there is no problem when pnpm dev.
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: