Sveltekit app build failing due to exit code 1

Trying to build and deploy a Sveltekit app on Netlify and it has recently started failing and I’m trying to figure out why…here is the error in the build:

11:06:26 PM: file:///opt/build/repo/.svelte-kit/output/server/chunks/MotionSSR-9e98dcbf.js:6
11:06:26 PM: import { number, px, degrees, scale, alpha, progressPercentage, complex, color, filter, percent, vw, vh } from "style-value-types";
11:06:26 PM:                                      ^^^^^
11:06:26 PM: SyntaxError: Named export 'alpha' not found. The requested module 'style-value-types' is a CommonJS module, which may not support all module.exports as named exports.
11:06:26 PM: CommonJS modules can always be imported via the default export, for example using:
11:06:26 PM: import pkg from 'style-value-types';
11:06:26 PM: const { number, px, degrees, scale, alpha, progressPercentage, complex, color, filter, percent, vw, vh } = pkg;
11:06:26 PM:     at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
11:06:26 PM:     at async ModuleJob.run (node:internal/modules/esm/module_job:179:5)
11:06:26 PM:     at async Loader.import (node:internal/modules/esm/loader:178:24)
11:06:26 PM:     at async Object.load_component (file:///opt/build/repo/.svelte-kit/output/server/chunks/app-8df5f4cc.js:553:13)
11:06:26 PM:     at async Promise.all (index 0)
11:06:26 PM:     at async respond$1 (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/ssr.js:1211:11)
11:06:26 PM:     at async render_page (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/ssr.js:1454:19)
11:06:26 PM:     at async resolve (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/ssr.js:1717:10)
11:06:26 PM:     at async respond (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/ssr.js:1696:10)
11:06:26 PM:     at async visit (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:167:20)
11:06:26 PM: SyntaxError: Named export 'alpha' not found. The requested module 'style-value-types' is a CommonJS module, which may not support all module.exports as named exports.
11:06:26 PM: CommonJS modules can always be imported via the default export, for example using:
11:06:26 PM: import pkg from 'style-value-types';
11:06:26 PM: const { number, px, degrees, scale, alpha, progressPercentage, complex, color, filter, percent, vw, vh } = pkg;
11:06:26 PM: > 500 /
11:06:26 PM: Error: 500 /
11:06:26 PM:     at file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:86:11
11:06:26 PM:     at visit (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:222:5)
11:06:26 PM:     at async prerender (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:303:6)
11:06:26 PM:     at async Object.prerender (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:368:4)
11:06:26 PM:     at async adapt (file:///opt/build/repo/node_modules/@sveltejs/adapter-netlify/index.js:48:4)
11:06:26 PM:     at async adapt (file:///opt/build/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:393:2)
11:06:26 PM:     at async file:///opt/build/repo/node_modules/@sveltejs/kit/dist/cli.js:896:5
11:06:26 PM: ​
11:06:26 PM: ────────────────────────────────────────────────────────────────
11:06:26 PM:   "build.command" failed                                        
11:06:26 PM: ────────────────────────────────────────────────────────────────
11:06:26 PM: ​
11:06:26 PM:   Error message
11:06:26 PM:   Command failed with exit code 1: npm run build
11:06:26 PM: ​
11:06:26 PM:   Error location
11:06:26 PM:   In build.command from netlify.toml:
11:06:26 PM:   npm run build
11:06:26 PM: ​
11:06:26 PM:   Resolved config
11:06:26 PM:   build:
11:06:26 PM:     command: npm run build
11:06:26 PM:     commandOrigin: config
11:06:26 PM:     environment:
11:06:26 PM:       - NODE_VERSION
11:06:26 PM:     publish: /opt/build/repo/build
11:06:26 PM:     publishOrigin: config
11:06:26 PM:   functions:
11:06:26 PM:     '*':
11:06:26 PM:       node_bundler: esbuild
11:06:26 PM:   functionsDirectory: /opt/build/repo/functions

…I think it has to do with a library that is installed that was working before, but is now not working for whatever reason, but I don’t really understand what I’m reading.

I’m hoping that somebody sees this and knows what might be going on here and can help…

…Thank you :slight_smile:

This appears to be related to this: