-
Notifications
You must be signed in to change notification settings - Fork 3
"has no exported member 'FakeTimerInstallOpts'" error when building out of the box #184
Description
Summary
Building out of the box generates the following error : has no exported member 'FakeTimerInstallOpts'
Steps To Reproduce:
- yarn install
- yarn prepack
Expected result
Should build
Actual result
% yarn prepack
yarn run v1.22.19
$ yarn run build && oclif-dev manifest
$ yarn run clean:lib && yarn compile
$ shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json
$ tsc -b
node_modules/@types/sinon/index.d.ts:1447:53 - error TS2694: Namespace '"/Users/rupert/Downloads/plugin-metadata-hook-demo-master/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'FakeTimerInstallOpts'.
1447 useFakeTimers: boolean | Partial<FakeTimers.FakeTimerInstallOpts>;
~~~~~~~~~~~~~~~~~~~~
node_modules/@types/sinon/index.d.ts:1569:67 - error TS2694: Namespace '"/Users/rupert/Downloads/plugin-metadata-hook-demo-master/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'FakeTimerInstallOpts'.
1569 useFakeTimers(config?: number | Date | Partial<FakeTimers.FakeTimerInstallOpts>): SinonFakeTimers;
~~~~~~~~~~~~~~~~~~~~
Found 2 errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
rupert@MacBook-Pro-de-Rupert plugin-metadata-hook-demo-master %
Additional information
I'm using TypeScript version 4.4.4
VS Code Version:
SFDX CLI Version:
OS and version: MacOS 11.7.1