Closed jangxyz closed 2 months ago
The 0.17.0 only works with Svelte 4.
Try the unreleased the svelte5 branch ( 2.0.0-beta.3 ) it works pretty good in my tests.
Strange, when building the package the preprocessReact.js was modified from:
const imports = [
`import { sveltify as ${prefix}sveltify } from "svelte-preprocess-react";`,
];
into:
const imports = [
`import { sveltify as ${prefix}sveltify } from "./";`,
];
Fixed in 2.0.0-beta-5
Nice! I'm glad it was not something to do with svelte5 internals. Confirmed working in my code too 👍 👍
Even after #34, I am seeing compile errors:
This is
svelte@5.0.0-next.164
, withsvelte-preprocess-react@2.0.0-beta.3
I know Svelte 5 is not officially released yet, and RC is what we've got. I was curious whether this a known issue, and you are planning to work on it after there is an official release.
Or... perhaps I have missed something? It did work before I upgraded to Svelte 5 (was using 0.17.0).