Open CTNicholas opened 2 years ago
The same happens with a customSetup
passed to SandpackProvider
. Switching the dependency from svelte: '^3.0.0'
to svelte: '^3.44.2'
fixes the issue, even though Svelte v3.44.2 is loaded by the bundler in both instances. A bundler issue?
Hey @CTNicholas, thanks for raising this issue! We've been working on a fix to address this issue in the main bundle repository. Meanwhile, I hope this is not blocking you.
Hey @CTNicholas, thanks for raising this issue! We've been working on a fix to address this issue in the main bundle repository. Meanwhile, I hope this is not blocking you.
Awesome! All good, I love the package, keep it up guys!
Bug report
Packages affected
Description of the problem
I'm using
sandpack-react
. Using thesvelte
template with default settings, reactive variables update correctly, but they render to the DOM asundefined
.What were you doing when the problem occurred?
Using this basic component:
What steps can we take to reproduce the problem?
Paste the code into
/App.svelte
into Sandpack in my sandbox. The button readsundefined
after clicking, but count displays correctly in the console.Link to sandbox: link
Your Environment