#Updating Astro from 4.6.3 to latest breaks build process

5 messages · Page 1 of 1 (latest)

silent bridge
#

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.

keen zenith
#

Do you have an experimental features enabled in your astro config that became baseline?

silent bridge
#

Not as far as I can tell. Here's my config:

import { defineConfig } from 'astro/config';
import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
  output: 'hybrid',
  adapter: cloudflare()
});
pliant raven
silent bridge
#

@pliant raven Installing sass-embedded manually and using the vite config in the thread you linked resolved the issue.