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
I encountered TypeScript compilation errors related to the @types/lodash package. The errors occur in the common.d.ts file of the @types/lodash package during the build process.
🙁 Expected Behavior
I expected(аfter upgrading to v5.1.3) the build process to complete without any TypeScript compilation errors associated with the @types/lodash package.
Because in my project we don't use lodash and @types/lodash. I cleared the cache, but that didn't help either.
🙁 Actual Behavior
During the build process, I encountered the following TypeScript compilation errors:
💻 Code
node_modules/@types/lodash/common/common.d.ts:194:15-errorTS2589: Typeinstantiationisexcessivelydeepandpossiblyinfinite.194interfaceObject<T>extendsLoDashImplicitWrapper<T>{~~node_modules/@types/lodash/common/common.d.ts:206:15-errorTS2430: Interface 'ObjectChain<T>' incorrectly extends interface 'LoDashExplicitWrapper<T>'.Thetypesreturnedby 'entries().pop()' are incompatible between these types.Type 'CollectionChain<string|T[keyofT]>' is missing the following properties from type 'ObjectChain<[string,any]>': assign, assignIn, assignInWith, assignWith, and 11 more.
206interfaceObjectChain<T>extendsLoDashExplicitWrapper<T>{~~~~~Found2errorsinthesamefile,startingat: node_modules/@types/lodash/common/common.d.ts:194
🙁 Actual behavior
Versions
TypeScript version: 5.1.3
@types/lodash package version: Not used
Additional Information
I have tried the following solutions, but none of them resolved the issue:
Updating dependencies to the latest versions.
Clearing the Yarn cache.
Reinstalling dependencies.
Verifying the TypeScript configuration.
I would greatly appreciate any help or guidance to resolve this issue. If you have any suggestions, workarounds, or insights into the compatibility between Lodash typings and TypeScript, please let me know. Thank you!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Description
I encountered TypeScript compilation errors related to the
@types/lodash
package. The errors occur in thecommon.d.ts
file of the@types/lodash
package during the build process.🙁 Expected Behavior
I expected(аfter upgrading to v5.1.3) the build process to complete without any TypeScript compilation errors associated with the
@types/lodash
package.Because in my project we don't use lodash and @types/lodash. I cleared the cache, but that didn't help either.
🙁 Actual Behavior
During the build process, I encountered the following TypeScript compilation errors:
💻 Code
🙁 Actual behavior
Versions
@types/lodash
package version: Not usedAdditional Information
I have tried the following solutions, but none of them resolved the issue:
I would greatly appreciate any help or guidance to resolve this issue. If you have any suggestions, workarounds, or insights into the compatibility between Lodash typings and TypeScript, please let me know. Thank you!
The text was updated successfully, but these errors were encountered: