Closed
Description
repro: https://github.com/joshcartme/tsgo-glob-bug
using: 7.0.0-dev.20250529.1
In the above repo I've got a nested tsconfig.json
that includes some files by having "../../ambient-types/**/*"
in it's include
. This works fine under tsc
but does not work with tsgo
. It does work with tsgo
if the include is changed to "../../ambient-types/*"
or "../../ambient-types"
tsc:
$ yarn run tsc --project lib/core/tsconfig.json
yarn run v1.22.22
$ /home/repro/development/tsgo-glob-bug/node_modules/.bin/tsc --project lib/core/tsconfig.json
Done in 0.59s.
tsgo:
$ yarn run tsgo --project lib/core/tsconfig.json
yarn run v1.22.22
$ /home/repro/development/tsgo-glob-bug/node_modules/.bin/tsgo --project lib/core/tsconfig.json
lib/core/index.ts:1:14 - error TS2304: Cannot find name '$FixMe'.
1 const fixMe: $FixMe = '';
~~~~~~
Found 1 error in lib/core/index.ts:1
Using the root tsconfig.json
which has ambient-types/**/*
in it's include works find with tsc
and tsgo
so it seems to be something about the combination of a relative url that has a glob pattern in it.
Metadata
Metadata
Assignees
Labels
No labels