You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to import Svelte components in a React codebase, but I'm getting this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
at portalTag (svelte-preprocess-react.js?v=4fe1c300:334:44)
at svelte-preprocess-react.js?v=4fe1c300:361:39
<... rest of traceback ...>
I've checked the sources and apparently nodeKey is undefined inside the portalTag function, thus it fails.
Hi,
I'm trying to import Svelte components in a React codebase, but I'm getting this error:
I've checked the sources and apparently
nodeKey
isundefined
inside the portalTag function, thus it fails.I've also created a minimal reproducible repository for you to help with the investigation: https://github.com/fbjorn/svelte-react-issue-demo
Just
pnpm install && pnpm dev
to see the errorLooking forward to hear your feedback on this, thanks.
The text was updated successfully, but these errors were encountered: