Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

"has no exported member 'FakeTimerInstallOpts'" error when building out of the box #184

@RupertBarrow

Description

@RupertBarrow

Summary

Building out of the box generates the following error : has no exported member 'FakeTimerInstallOpts'

Steps To Reproduce:

  1. yarn install
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions