lodash / lodash

A modern JavaScript utility library delivering modularity, performance, & extras.
https://lodash.com/
Other
59.77k stars 7.02k forks source link

loadesh build issue #5893

Open sgundepa opened 3 months ago

sgundepa commented 3 months ago

getting the following error in lodash

node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected.

1026 : K extends ${infer N extends number} ? T[N] ~ node_modules/@types/lodash/common/object.d.ts:1031:46 - error TS1005: '?' expected.

1031 : K extends ${infer N extends number} ? T[N] ~ node_modules/@types/lodash/common/object.d.ts:1041:46 - error TS1005: '?' expected.

1041 : K extends ${infer N extends number} ~

Found 3 error(s).

tuantu196 commented 3 months ago

I got the same issue!

sgundepa commented 3 months ago

any updates? Is there any way to fix this?

Getting same issue when we downgraded the version

rhdunn commented 3 months ago

See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/69932, specifically https://github.com/DefinitelyTyped/DefinitelyTyped/issues/69932#issuecomment-2199585234.

jakebailey commented 3 months ago

This has nothing to do wtih lodash proper; if you're using such an ancient version of TypeScript such that this doesn't work, you need to pin back your deps too.