Skip to content

regression in 7.0.0-dev.20251203.1 - TS2694 no exported member on namespace #2261

@lukeapage

Description

@lukeapage

Steps to reproduce

Issue is not reproducible in 7.0.0-dev.20251202.1, but is in 7.0.0-dev.20251203.1

Repro

# install
npm i

# no error
npm run ts
# errors
npm run tsgo

Behavior with typescript@5.9

No Error

Behavior with tsgo

index.ts:3:19 - error TS2694: Namespace '_' has no exported member 'Dictionary'.

3 export const x: _.Dictionary<number> = {};
                    ~~~~~~~~~~

node_modules/@types/lodash/common/array.d.ts:6:33 - error TS2694: Namespace '_' has no exported member 'MutableList'.

6 type RejectReadonly<T extends _.MutableList<unknown>> = _IsWritable<T> extends true ? T : never
                                  ~~~~~~~~~~~


Found 2 errors in 2 files.

Errors  Files
     1  index.ts:3
     1  node_modules/@types/lodash/common/array.d.ts:6

Metadata

Metadata

Assignees

Labels

Domain: Type CheckingRelated to type checking, grammar checkingbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions