Closed JoshuaKGoldberg closed 10 months ago
Hey @JoshuaKGoldberg sorry for not responding earlier. I see that the commit no longer exists. Are you still having this problem? If not can we close the issue? Thanks.
Oop, sorry, I don't know what force push I did to get rid of it 😅.
I'd assume the issue still exists but will probably be less relevant as time goes on. It was quite irritating to discover the hard way when upgrading.
Thanks for the issue. While I think it's nice to prevent hard breakage like these in the future, we don't have much bandwidth to fix this case at the moment. All packages should usually be upgraded to latest when upgrading Astro as well. And for that, https://github.com/withastro/astro/pull/8525 may help with this. For now I'll close this issue.
I had this same issue when attempting to rebuild my Astro site that wasn't touched for a year.
I ended up using npm update
to update all my dependencies since I couldn't figure out what was wrong. The core dependency for Astro was being annoying and installing the older version 3.x
so I uninstalled it and manually added the latest version using npm i astro@4.11
/ npm i astro@latest
.
I then went to rebuild it using npm run build
, and it gave me the following error:
[vite]: Rollup failed to resolve import "sharp" from "C:/Users/Vince/Desktop/fun/Vince-Web-Designs/node_modules/astro/dist/assets/services/sharp.js".
I then installed Sharp using npm i sharp
, and rebuilt my site. Now it works! 🥳
Astro Info
If this issue only occurs in one browser, which browser is a problem?
n/a
Describe the Bug
After upgrading all packages except
@astrojs/mdx
to the latest for Astro 3 (hooray! congrats again on the launch! 🥳), trying to visit or build a.mdx
page with frontmatter yields:What's the expected result?
pls work :c
Aside: I tried astro.new for a bit but it didn't give the error I wanted 😞 sorry! But this was reported on Discord too: https://discord.com/channels/830184174198718474/1162386580548362344
Repro steps:
pnpm install
pnpm build
Link to Minimal Reproducible Example
https://github.com/JoshuaKGoldberg/dot-com/tree/694445d (sorry)
Participation