You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Transloco package(s) are the source of the bug?
Preload Langs
Is this a regression?
No
Current behavior
Receiving an error when compiling an application that references @ngneat/transloco-preload-langs:
Error: ../node_modules/.pnpm/@[email protected]_510e379a0c10b7b012326159b0495067/node_modules/@ngneat/transloco-preload-langs/lib/preload-langs.module.d.ts:10:9 - error TS2717: Subsequent property declarations must have the same type. Property 'requestIdleCallback' must be of type '(callback: IdleRequestCallback, options?: IdleRequestOptions) => number', but here has type '(cb: IdleCallback) => number'.
10 requestIdleCallback: (cb: IdleCallback) => number;
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:17326:5
17326 requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'requestIdleCallback' was also declared here.
It appears that @ngneat/transloco-preload-langs is defining requestIdleCallback in lib/preload-langs.module.d.ts which is conflicting with the type provided in typescript 4.4.3 lib/lib.dom.d.ts. Here is the type in question:
If I comment out the requestIdleCallback line in lib/preload-langs.module.d.ts I am able to compile and use my application normally. I'm not sure if this is a type that was only recently added to this package, but I've noticed this problem only in the last few weeks.
Expected behavior
There should be no compilation errors or type conflicts
Please provide a link to a minimal reproduction of the bug
None
Transloco Config
No response
Please provide the environment you discovered this bug in
Transloco: 3.0.0
Angular: 12.2.7
Node: 14.17.5
Package Manager: PNPM 6.16.0
OS: Windows 10 Pro
TypeScript: 4.4.3
Browser
N/A
Additional context
A similar issue seems to have occurred last year, but was fixed in a 3rd party module instead: #291
I would like to make a pull request for this bug
No
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Which Transloco package(s) are the source of the bug?
Preload Langs
Is this a regression?
No
Current behavior
Receiving an error when compiling an application that references
@ngneat/transloco-preload-langs
:It appears that
@ngneat/transloco-preload-langs
is definingrequestIdleCallback
inlib/preload-langs.module.d.ts
which is conflicting with the type provided in typescript 4.4.3lib/lib.dom.d.ts
. Here is the type in question:If I comment out the
requestIdleCallback
line inlib/preload-langs.module.d.ts
I am able to compile and use my application normally. I'm not sure if this is a type that was only recently added to this package, but I've noticed this problem only in the last few weeks.Expected behavior
There should be no compilation errors or type conflicts
Please provide a link to a minimal reproduction of the bug
None
Transloco Config
No response
Please provide the environment you discovered this bug in
Browser
Additional context
A similar issue seems to have occurred last year, but was fixed in a 3rd party module instead: #291
I would like to make a pull request for this bug
No
The text was updated successfully, but these errors were encountered: