I have a working site using Astro version 4.6.3. I can start the local development server with astro dev and everything runs and builds just fine. If I try to update to the latest version using npx @astrojs/upgrade, I start getting dependencies errors and issues with building the site. I have already tried completely removing node_module and package-lock.json and reinstalling everything, but I still get the same errors. I can rollback dependencies to 4.6.3, run npm install and everything works again.
Using an M2 Macbook on Sonoma 14.6.1 (23G93).
Immediately after updating Astro, I get the error [ERROR] [vite] Internal server error: Preprocessor dependency "sass-embedded" not found. Did you install it? Try npm install -D sass-embedded. If I install that package, the site fails to build at all and just crashes when attempting to load stylesheets. The full problem description and console output was unfortunately too long to include in this message, but is attached.
Any help would be greatly appreciated.