-
Notifications
You must be signed in to change notification settings - Fork 13
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
regression: build fails with SK 2.0 and svelte-highlight >=7.4.3 #315
Comments
Can you ensure this is the latest patch version v7.4.7? |
The sveltekit example works for me – both dev and building using the node adapter. It's using SvelteKit v2. |
it appears that at one point, 'svelte-highlight/styles' was a valid import, but now it is not, so that was a major breaking change labeled as a patch release. I've updated the code to import the specific stylesheet and it's now working |
I'll take a look. |
@wbhob Thank you for flagging this. Technically, it wasn't a breaking change as the barrel export files still exist (e.g., I published a fix in v7.4.8, which supports additional import methods: // Base import for styles/languages
import { _default } from "svelte-highlight/styles";
import { _1c } from "svelte-highlight/languages";
// Explicit index
import { _default } from "svelte-highlight/styles/index";
import { typescript } from "svelte-highlight/languages/index";
// Explicit extension
import lang from "svelte-highlight/languages/1c.js"
import style from "svelte-highlight/styles/3024.js"; No TS errors in my IDE; Vite was able to resolve these imports in |
When attempting to build my app using SvelteKit 2.0 and Vite 5.0, the following error occurs. The last version that builds successfully is 7.4.2.
The text was updated successfully, but these errors were encountered: