eclipse-thingweb / node-wot

A fast and extensible framework to connect any device with your browser and backend applications
https://thingweb.io
Other
166 stars 80 forks source link

Auto-updating sinon dependencies causes issues #823

Open danielpeintner opened 2 years ago

danielpeintner commented 2 years ago
node_modules/@types/sinon/index.d.ts:1447:53 - error TS2694: Namespace '"C:/Projects/WoT/thingweb/thingweb.node-wot-danielpeintner/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'FakeTimerInstallOpts'.

1447         useFakeTimers: boolean | Partial<FakeTimers.FakeTimerInstallOpts>;

To reproduce:

I set the version to a fixed version, see https://github.com/eclipse/thingweb.node-wot/pull/822/commits/ccd01258ae1fe69e58706bb480453fab9ce742b0

danielpeintner commented 2 years ago

npm dedupe (see https://github.com/eclipse/thingweb.node-wot/pull/765#issuecomment-1133772886) solves the issue...

danielpeintner commented 2 years ago

Not entirely true... the issue persists if the root sinon uses ^ for the version..