Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-tsc doesn't report errors in monorepo managed by pnpm #5199

Open
Perdolique opened this issue Feb 19, 2025 · 0 comments
Open

vue-tsc doesn't report errors in monorepo managed by pnpm #5199

Perdolique opened this issue Feb 19, 2025 · 0 comments

Comments

@Perdolique
Copy link

Perdolique commented Feb 19, 2025

Vue - Official extension or vue-tsc version

2.2.2

VSCode version

1.97.2

Vue version

3.5.13

TypeScript version

5.7.3

System Info

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm

package.json dependencies

Steps to reproduce

  1. Open this
  2. Run pnpm --filter test run typecheck

What is expected?

app.vue:2:4 - error TS2345: Argument of type '{}' is not assignable to parameter of type '{ readonly required: boolean; } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Record<string, unknown>'.
  Property 'required' is missing in type '{}' but required in type '{ readonly required: boolean; }'.

2   <Test />
     ~~~~

  Test.vue:7:3
    7   required: boolean;
        ~~~~~~~~
    'required' is declared here.

What is actually happening?

No errors detected

Link to minimal reproduction

https://stackblitz.com/edit/nuxt-starter-dtbccbps?file=.npmrc

Any additional comments?

It works with unrecommended shamefully-hoist=true in .npmrc or node-linker=hoisted. I can assume vue-tsc doesn't work well with symlinks or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant