DEV Community

loading...

Discussion on: Why I moved from React to Svelte and others will follow

Collapse
triptych profile image
Andrew Wooldridge

FYI your "A Component using External Modules" seems to have an error in the Svelte repl: svelte.dev/repl/28f4b2e36e4244b8b2...

It's showing:
Cannot read property 'Remarkable' of undefined

Collapse
mikenikles profile image
Mike Nikles Author

Nice catch Andrew, it looks like there was a race condition where the external JS file didn't provide its global window.remarkable object quickly enough.

That's fixed now - thank you for letting me know.

Collapse
triptych profile image
Andrew Wooldridge

Thanks for responding and getting it to work! I learned more about Svelte looking at how you fixed it.