Skip to content

Type checking with project references errors #900

@NullVoxPopuli

Description

@NullVoxPopuli

root tsconfig.json:

{
  "references": [
    { "path": "./config/tsconfig.src.json" },
    { "path": "./config/tsconfig.tests.json" },
    { "path": "./config/tsconfig.docs-app.json" },
    { "path": "./config/tsconfig.typedoc.json" },
  ]
}

error:

❯ pnpm glint
languageId not found for <repo>/docs-app/templates/application.gts
!!sourceScript
<.pnpm>/@volar+typescript@2.4.12/node_modules/@volar/typescript/lib/node/proxyCreateProg
ram.js:182
        throw new Error(message);
              ^

Error: !!sourceScript
    at assert (<.pnpm>/@volar+typescript@2.4.12/node_modules/@volar/typescript/lib/node/
proxyCreateProgram.js:182:15)
    at options.host.getSourceFile (<.pnpm>/@volar+typescript@2.4.12/node_modules/@volar/
typescript/lib/node/proxyCreateProgram.js:123:21)
    at findSourceFileWorker (<.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js
:122806:23)
    at findSourceFile (<.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:12272
2:20)
    at <.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:122671:22
    at getSourceFileFromReferenceWorker (<.pnpm>/typescript@5.8.3/node_modules/typescrip
t/lib/tsc.js:122642:26)
    at processSourceFile (<.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:12
2669:5)
    at processRootFile (<.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:1225
00:5)
    at <.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:121241:41
    at forEach (<.pnpm>/typescript@5.8.3/node_modules/typescript/lib/tsc.js:32:22)
❯ pnpm why @glint/core
Legend: production dependency, optional only, dev only

nullui@0.2.0 <repo>

devDependencies:
@glint/core 1.4.1-unstable.d17c1f1
@glint/environment-ember-loose 1.4.1-unstable.d17c1f1
└── @glint/core 1.4.1-unstable.d17c1f1 peer
@glint/environment-ember-template-imports 1.4.1-unstable.d17c1f1
├── @glint/core 1.4.1-unstable.d17c1f1 peer
└─┬ @glint/environment-ember-loose 1.4.1-unstable.d17c1f1 peer
  └── @glint/core 1.4.1-unstable.d17c1f1 peer
@glint/tsserver-plugin 1.4.1-unstable.d17c1f1
└── @glint/core 1.4.1-unstable.d17c1f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions