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

TypeError: Cannot read properties of undefined (reading '$$') #686

Closed
macabeus opened this issue Feb 20, 2023 · 2 comments
Closed

TypeError: Cannot read properties of undefined (reading '$$') #686

macabeus opened this issue Feb 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@macabeus
Copy link

macabeus commented Feb 20, 2023

Hello, thanks for the package!
I'm trying to use this package on my personal project built with SvelteKit, but I have the following error:

index.mjs:307 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '$$')
    at init (index.mjs:307:50)

It refers to the following line:
image

I tried to fix it by adding a parent to FluentProvider, but it didn't fix that.

Commit with the changes: gambiconf/gambiconf.github.io@a4f61cb
You can easily follow the project readme to reproduce it.

@sfriedel
Copy link
Collaborator

Thank you for reporting this issue @macabeus. I haven't seen this one before, but it reminds me of problems I had in the past where for some reason multiple separate instances of svelte got included in the bundle which lead to broken behavior of svelte contexts.

I'll try to give it a check later.

@sfriedel sfriedel added the bug Something isn't working label Feb 20, 2023
@sfriedel sfriedel self-assigned this Feb 20, 2023
@sfriedel
Copy link
Collaborator

@macabeus it appears the issue is vite@4.1.2 and to fix the problem you need to update to vite@4.1.3.

You can simply run

npm i -D vite@4.1.3

I'm still not sure what exactly the problem was with vite@4.1.2. I didn't really find anything that seemed related in their changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants