sbb-design-systems / lyne-components

Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
46 stars 13 forks source link

[Bug]: 1.11.0: No matching version found for @lit-labs/observers@^3.0.0OBSERVERS #3100

Closed sandrooco closed 1 month ago

sandrooco commented 1 month ago

Preflight Checklist

Bug type

Other

It affects the following packages

Components

Which version of Lyne Components are you using

1.11.0

Operating system

any

Browser / Browser version

not relevant

Input mode

None

Additional settings

No response

What happened?

I'm trying to update to Lyne 1.11.0 (thanks for the fixes!). Unfortunately something seems to be off with the dependencies. When installing them, I get the error "ETARGET: No matching version found for @lit-labs/observers@^3.0.0OBSERVERS." Yarn will let me choose an existing version, npm will just throw an error and exit.

Steps to reproduce the issue

  1. Visit https://stackblitz.com/edit/angular-at-8hg8bk?file=package.json
  2. Run npm install or yarn install
  3. The error should appear

Relevant log output

❯ npm i
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @lit-labs/observers@^3.0.0OBSERVERS.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-09-20T06_45_39_932Z-debug-0.log
sandrooco commented 1 month ago

Quick update: I tried adding the following override in my package.json: "@lit-labs/observers": "2.0.3" This is the latest version according to npm, which actually works. So I guess there's just something small wrong with how this dep is handled. :)

kyubisation commented 1 month ago

Hello @sandrooco Thanks for the bug report. Our dependency assignment was not working as expected and should be fixed by #3102.

sandrooco commented 1 month ago

Thank you very much for the quick fix, @kyubisation!