-
Notifications
You must be signed in to change notification settings - Fork 768
Open
Description
Steps to reproduce
I'm trying to upgrade oxlint to enable type-aware which powered by tsgo(tsgo-lint), and I met a missing type-info error when I linting an exist file.(missing type info and retrieve it as any which breakdown unsafe-arg and other rules)
Behavior with typescript@5.9
npx tsc --noEmit --traceResolution 2>&1 | grep -A 30 "Resolving module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from" | head -50
======== Resolving module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/index.tsx'. ========
Explicitly specified module resolution kind: 'Node10'.
'paths' option is specified, looking for a pattern to match module name '@tt4b/reporting-core-components/dist/components/reporting-filter/type'.
Loading module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from 'node_modules' folder, target file types: TypeScript, Declaration.
Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/package.json' exists according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.ts' does not exist.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.tsx' does not exist.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.d.ts' exists - use it as a name resolution result.
Resolving real path for '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.d.ts', result '/Users/changehow/workspace/ad_vertical_frontends/node_modules/.pnpm/@tt4b+reporting-core-components@0.0.1-beta-202510212100_@floating-ui+utils@0.2.10_@sten_70be000ab86d368ec8114ad32c46748c/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.d.ts'.
======== Module name '@tt4b/reporting-core-components/dist/components/reporting-filter/type' was successfully resolved to '/Users/changehow/workspace/ad_vertical_frontends/node_modules/.pnpm/@tt4b+reporting-core-components@0.0.1-beta-202510212100_@floating-ui+utils@0.2.10_@sten_70be000ab86d368ec8114ad32c46748c/node_modules/@tt4b/reporting-core-components/dist/components/reporting-filter/type.d.ts' with Package ID '@tt4b/reporting-core-components/dist/components/reporting-filter/type.d.ts@0.0.1-beta-202510212100+react@18.3.1+react-dom@18.3.1'. ========
======== Resolving module '@/common/components/global-provider' from '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/index.tsx'. ========
Explicitly specified module resolution kind: 'Node10'.
'paths' option is specified, looking for a pattern to match module name '@/common/components/global-provider'.
Module name '@/common/components/global-provider', matched pattern '@/*'.
Trying substitution './src/*', candidate module location: './src/common/components/global-provider'.
Loading module as file / folder, candidate module location '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/common/components/global-provider', target file types: TypeScript, Declaration.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/common/components/global-provider.ts' does not exist.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/common/components/global-provider.tsx' does not exist.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/common/components/global-provider.d.ts' does not exist.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/common/components/global-provider/package.json' does not exist according to earlier cached lookup
Behavior with tsgo
tsgo --noEmit --traceResolution 2>&1 | grep -A 30 "Resolving module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from" | head -50
======== Resolving module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/index.tsx'. ========
Module resolution kind is not specified, using 'Bundler'.
Resolving in CJS mode with conditions 'require', 'types'.
'paths' option is specified, looking for a pattern to match module name '@tt4b/reporting-core-components/dist/components/reporting-filter/type'.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/package.json' does not exist according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/package.json' does not exist according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/package.json' does not exist according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/package.json' does not exist according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/package.json' does not exist according to earlier cached lookups.
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/package.json' exists according to earlier cached lookups.
Loading module '@tt4b/reporting-core-components/dist/components/reporting-filter/type' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.
Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/node_modules' does not exist, skipping all lookups in it.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/filter/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/node_modules' does not exist, skipping all lookups in it.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/components/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/node_modules' does not exist, skipping all lookups in it.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/native/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/node_modules' does not exist, skipping all lookups in it.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/modules/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/node_modules' does not exist, skipping all lookups in it.
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/src/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
File '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components/package.json' exists according to earlier cached lookups.
Export specifier './dist/components/reporting-filter/type' does not exist in package.json scope at path '/Users/changehow/workspace/ad_vertical_frontends/apps/creative-hub/node_modules/@tt4b/reporting-core-components'.
Scoped package detected, looking in 'tt4b__reporting-core-components/dist/components/reporting-filter/type'
Directory '/Users/changehow/workspace/ad_vertical_frontends/apps/node_modules' does not exist, skipping all lookups in it.
Metadata
Metadata
Assignees
Labels
No labels