Skip to content

TypeError: Cannot read properties of undefined (reading 'useCaseSensitiveFileNames') #5696

@BrianRichardson

Description

@BrianRichardson

Vue - Official extension or vue-tsc version

Vue Official Extension v3.1.0

VSCode version

1.104.2 for Ubuntu

Vue version

3.5.22

TypeScript version

5.9.2

System Info

System:
    OS: Linux 6.8 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
    CPU: (12) x64 Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
    Memory: 13.16 GB / 31.18 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Browsers:
    Chrome: 140.0.7339.207

package.json dependencies

{
  "dependencies": {
    "@fontsource/roboto": "^5.2.8",
    "@mdi/font": "7.4.47",
    "axios": "^1.12.2",
    "dotenv": "^17.2.3",
    "reflect-metadata": "^0.2.2",
    "typia": "^9.7.2",
    "vue": "^3.5.22",
    "vue-tsc": "^3.1.0",
    "vuetify": "^3.10.3"
  },
  "devDependencies": {
    "@ryoppippi/unplugin-typia": "npm:@jsr/ryoppippi__unplugin-typia@^1.2.0",
    "@tsconfig/node22": "^22.0.2",
    "@types/express": "^5.0.3",
    "@types/graylog2": "^0.2.5",
    "@types/node": "^24.6.0",
    "@vitejs/plugin-vue": "^5.2.4",
    "@vue/tsconfig": "^0.8.1",
    "eslint": "^9.36.0",
    "eslint-config-vuetify": "^3.0.3",
    "npm-run-all2": "^7.0.2",
    "pinia": "^3.0.3",
    "sass-embedded": "^1.93.2",
    "ts-patch": "^3.3.0",
    "typescript": "~5.9.2",
    "unplugin-auto-import": "^19.3.0",
    "unplugin-fonts": "^1.4.0",
    "unplugin-vue-components": "^28.8.0",
    "unplugin-vue-router": "^0.15.0",
    "vite": "^6.3.6",
    "vite-plugin-vue-layouts-next": "^1.0.0",
    "vite-plugin-vuetify": "^2.1.2",
    "vue-router": "^4.5.1"
  }
}

Steps to reproduce

Run command:
vue-tsc --build --force

Attempting to utilise Typia, which fails to generate JSON transforms, presumably due to this exception.

What is expected?

Not throw exception and Typia to generate JSON transforms.

What is actually happening?

Output:

ui@0.0.0 type-check
vue-tsc --build --force

/home//app/node_modules/vue-tsc/index.js:36
throw err;
^

TypeError: Cannot read properties of undefined (reading 'useCaseSensitiveFileNames')
at Object.proxyCreateProgram (/home/user/app/node_modules/@volar/typescript/lib/node/proxyCreateProgram.js:33:68)
at /home/user/app/node_modules/typescript/lib/tsc.js:552:136
at /home/user/app/node_modules/typescript/lib/tsc.js:606:7
at Object. (/home/user/app/node_modules/typescript/lib/tsc.js:627:3)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Function._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)

Node.js v22.20.0

Link to minimal reproduction

No response

Any additional comments?

Possibly re-occurrence of #4783.

Have attempted to resolve, as per suggestions in previous issue, by re-installing NPM packages as follows, but with same outcome:

Uninstalled all NPM packages:

npm ci
npm cache clean --force
rm -rf node_modules

Re-installed TS Patch:
ts-patch install

Re-test TS Patch:
vue-tsc --build --force

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions