Skip to content

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

Open
@Perdolique

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions