-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
astro build
fails with pnpm (but works with npm)
#12669
Comments
I'm also encountering this issue since Astro 5 with the same use. In I tried to make a reproduction as minimal as possible: https://github.com/ArmandPhilippot/astro5-container-pnpm-build-error
When you use If I add vite: {
build: {
rollupOptions: {
external: "fsevents",
},
},
}, I get the following error:
So I guess it's more complicated to find a workaround on the user side. I know it's not the primary use for Oh and I'm not on Windows so:
|
|
This comment has been minimized.
This comment has been minimized.
暂时移除 rss 全文输出 withastro/astro#12669
I am experiencing exactly the same issue as @ArmandPhilippot. Are there any leads on this problem? Is there a fix planned? Additional note: If I remove the import of |
Until this issue is fixed, you can use |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
After upgrading to Astro 5, i noticed the following:
npm run astro build
works:pnpm run astro build
fails:The culprit seems to be the rss config. As soon as I remove the file, it works with pnpm as well:
Removing the
import { experimental_AstroContainer as AstroContainer } from "astro/container";
fixes the hangup.Reminds me of #11128, but since that one has been fixed apparently, it might be something else as well.
What's the expected result?
Compilation working with pnpm as well.
Link to Minimal Reproducible Example
No link because Stackblitz doesn't allow using pnpm as far as I can tell.
Participation
The text was updated successfully, but these errors were encountered: