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

Multiple Reactive libraries loaded. #15

Open
garth opened this issue Jul 17, 2023 · 7 comments
Open

Multiple Reactive libraries loaded. #15

garth opened this issue Jul 17, 2023 · 7 comments

Comments

@garth
Copy link

garth commented Jul 17, 2023

I'm seeing warnings after upgrading @syncedstore dependencies

warning, Symbol($reactiveproxy) passed, but does not match $reactiveproxy. Multiple Reactive libraries loaded?

I guess this is because of the versions of @reactivedata/reactive being out of sync. See the pnpm why output below:

@syncedstore/core 0.5.2
└── @reactivedata/reactive 0.2.0
@syncedstore/react 0.5.2
├─┬ @reactivedata/react 0.2.1
│ └── @reactivedata/reactive 0.2.2
└─┬ @syncedstore/core 0.5.2 peer
  └── @reactivedata/reactive 0.2.0
@garth
Copy link
Author

garth commented Jul 17, 2023

I've tested forcing all deps to use v0.2.2 and it seems to fix the issue:

  "pnpm": {
    "overrides": {
      "@reactivedata/reactive": "0.2.2"
    }
  },

@glebbash
Copy link

Almost gave up on svelte + yjs, thought it was server rendering issue.

@andrezimpel
Copy link

I am running into the same issue. 0.2.2 does not help. :/

@YousefED
Copy link
Owner

Does clearing node_modules and possibly your lock files help?

If not, does your lockfile show duplicate entries for any of the reactive or syncedstore libraries?

@garth
Copy link
Author

garth commented Aug 23, 2023

@YousefED the problem appears to be due to @syncedstore/core depending on v0.2.0 of @reactivedata/reactive whilst @reactivedata/react depends on v0.2.2. So two version of the same library are included and conflict with each other.

@andrezimpel
Copy link

@YousefED I did all of that. I also set up a new CRA app and copied your todo app. even then I had the error. When I used yarn resolutions to make sure @reactivedata/reactive was 0.2.2 (currently 0.2.0) it worked in CRA.

Using the same code in Next did not work, even with the resolution because both versions were installed.

@YousefED
Copy link
Owner

YousefED commented Aug 23, 2023 via email

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

4 participants