Closed dhruvkb closed 2 years ago
Hi Dhruv! It's likely related to the svelte version, as svelte's internals change from time to time.
Have you tried the blog demo? It's using svelte@3.46.5
.
Please share a full code example (preferably on StackBlitz) and I'll take a look.
Setting svelte: true
in iles.config.ts
installs 3.48.0 by default. But pinning Svelte to version 3.46.5 worked.
Thanks @ElMassimo. I'm closing this issue as my problem has been resolved.
iles
andvite
.Description π
Using a Svelte island raises
TypeError
.Reproduction π
svelte: true
iniles.config.ts
. This installs the necessary dependencies (sweet!).client:load
directive.Logs π
I made some changes in
node_modules
to log the value ofcomponent
.It's actually true that
component
is not a constructor but rather an Object with arender()
function. I'm not very familiar with Svelte so I don't know what it actually is.Screenshots π·
The Devtools show the component as
'Unknown Component'
.