loopbackio / loopbackio/loopback-next

Issue on your example example app, todo-list vs your latest release.

Open
#8,775 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Examples
Dominant language
TypeScript
Stars
5.1k
Forks
1.1k
Avg merge
2d 21h
Merged PRs (30d)
27

Description

Describe the bug

Has no exported member 'FakeTimerInstallOpts' when 'npm run build'.

Logs
node_modules/@types/sinon/index.d.ts:1447:53 - error TS2694: Namespace '"/home/lemz/Projects/Loopback/todo- 
list/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 '"/home/lemz/Projects/Loopback/todo- 
list/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 in the same file, starting at: node_modules/@types/sinon/index.d.ts:1447
Additional information

No response

Reproduction

https://github.com/lemadane/todolist-loopback4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with npm run build in the linked todolist-loopback4 example. Inspect node_modules/@types/sinon/index.d.ts and the @sinonjs/fake-timers declaration referenced by the errors; done means the example builds without the missing FakeTimerInstallOpts errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.