reactive icon indicating copy to clipboard operation
reactive copied to clipboard

Multiple Reactive libraries loaded.

Open garth opened this issue 2 years ago • 7 comments
trafficstars

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 avatar Jul 17 '23 13:07 garth

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"
    }
  },

garth avatar Jul 17 '23 13:07 garth

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

glebbash avatar Jul 22 '23 22:07 glebbash

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

andrezimpel avatar Aug 22 '23 11:08 andrezimpel

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 avatar Aug 23 '23 07:08 YousefED

@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.

garth avatar Aug 23 '23 07:08 garth

@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.

andrezimpel avatar Aug 23 '23 11:08 andrezimpel

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: @.***>

YousefED avatar Aug 23 '23 14:08 YousefED