powersync-ja / powersync-js

SDK that enables local-first and real-time reactive apps with embedded SQLite for JavaScript clients, including React Native and Web
https://www.powersync.com
Apache License 2.0
250 stars 13 forks source link

Conflicting peer dependencies of @powersync/common #231

Closed hut36 closed 1 month ago

hut36 commented 1 month ago

When installing both @powersync/web and @powersync/attachments as dependencies, I ran into this error:

dependencies:
+ @powersync/attachments 2.0.10
+ @powersync/web 1.2.1

 WARN  Issues with peer dependencies found
.
├─┬ @powersync/web 1.2.1
│ └── ✕ missing peer @powersync/common@^1.13.01.13.0
└─┬ @powersync/attachments 2.0.10
  └── ✕ missing peer @powersync/common@^1.9.0
✕ Conflicting peer dependencies:
  @powersync/common

The latest good @powersync/web version is 1.0.2. I'm using pnpm 8.15.8.

hut36 commented 1 month ago

Installing only @powersync/web results the same error. The peerDependencies in file package.json (https://www.npmjs.com/package/@powersync/web?activeTab=code) looks apparently wrong:

  "peerDependencies": {
    "@journeyapps/wa-sqlite": "~0.2.0",
    "@powersync/common": "^1.13.01.13.0"
  },
DominicGBauer commented 1 month ago

Hi @hut36 apologies for the delay. I am investigating this issue now.

DominicGBauer commented 1 month ago

Hi @hut36 this is now resolved in the latest package versions e.g. https://www.npmjs.com/package/@powersync/web?activeTab=code, thanks for pointing this issue out.