-
-
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
fix: Missing Sharp error during build #8049
Conversation
|
So I took a look at Next.js's implementation and they do just the same (of what you had done @Princesseuh) The missing piece is just to add a warning to say that sharp is missing. I don't think there's any other way around with pnpm. Do you want me to add those warnings? Happy to contribute a doc page as well. |
Next (and we) did this because Sharp was optional, which is not the case in Astro 3.0. What's the reason it cannot be used directly like a normal dependency? Does it require hoisting? |
Superseded by #8128, it seems like bundling JavaScript nonsense is causing us to not be able to simply import Sharp 😔 |
Ah yeah, did saw the same online that pnpm and sharp don't go well together. Great work! |
fix #7966