reactive
reactive copied to clipboard
Multiple Reactive libraries loaded.
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
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"
}
},
Almost gave up on svelte + yjs, thought it was server rendering issue.
I am running into the same issue. 0.2.2 does not help. :/
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?
@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.
@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.
Could you see if you have the same issue with version 0.6.0-alpha.0 (just published)?
On Wed, Aug 23, 2023 at 1:27 PM Andre Zimpel @.***> wrote:
@YousefED https://github.com/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.
— Reply to this email directly, view it on GitHub https://github.com/YousefED/reactive/issues/15#issuecomment-1689791256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC2BWLCAMJZDNSTXVQKI5DXWXSKXANCNFSM6AAAAAA2M6M5KY . You are receiving this because you were mentioned.Message ID: @.***>