Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing nodeKey when reactify #49

Open
fbjorn opened this issue Jan 6, 2025 · 1 comment
Open

Missing nodeKey when reactify #49

fbjorn opened this issue Jan 6, 2025 · 1 comment

Comments

@fbjorn
Copy link

fbjorn commented Jan 6, 2025

Hi,

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.

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 error

Looking forward to hear your feedback on this, thanks.

@fbjorn
Copy link
Author

fbjorn commented Jan 6, 2025

update: downgrading your lib to 2.0.4 solves the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant