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 component imports from node_modules are not being resolved #4611

Open
brc-dd opened this issue Jul 24, 2024 · 2 comments
Open

vue component imports from node_modules are not being resolved #4611

brc-dd opened this issue Jul 24, 2024 · 2 comments

Comments

@brc-dd
Copy link
Member

brc-dd commented Jul 24, 2024

Vue - Official extension or vue-tsc version

2.0.28

VSCode version

1.92.0-insider (22e3447)

Vue version

3.4.33

TypeScript version

5.5.4

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M2 Pro
    Memory: 512.38 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.2.0 - ~/.local/state/fnm_multishells/86941_1721795272757/bin/node
    Yarn: 1.22.22 - ~/.local/state/fnm_multishells/86941_1721795272757/bin/yarn
    npm: 10.7.0 - ~/.local/state/fnm_multishells/86941_1721795272757/bin/npm
    pnpm: 9.6.0 - ~/.local/state/fnm_multishells/86941_1721795272757/bin/pnpm
    bun: 1.1.17 - /opt/homebrew/bin/bun
  Browsers:
    Safari: 17.5
    Safari Technology Preview: 18.0

Steps to reproduce

  1. Clone https://github.com/brc-dd/volar-component-resolution-bug
  2. Install deps - pnpm i
  3. Open Foo.vue to see errors:
    image

What is expected?

No error and intellisense on component props to work.

What is actually happening?

Getting ts-plugin 2307 error.

Link to minimal reproduction

https://github.com/brc-dd/volar-component-resolution-bug

Any additional comments?

@brc-dd brc-dd changed the title Uncompiled vue components are not being resolved vue components imports from node_modules are not being resolved Jul 24, 2024
@brc-dd brc-dd changed the title vue components imports from node_modules are not being resolved vue component imports from node_modules are not being resolved Jul 24, 2024
@davidmatter davidmatter added bug Something isn't working and removed pending triage labels Aug 6, 2024
@davidmatter
Copy link
Collaborator

davidmatter commented Aug 6, 2024

Confirmed, used to behave differently in 2.0.22

@davidmatter
Copy link
Collaborator

You can mitigate this by adding node_modules/vitepress/**/* to tsconfig/include.

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

4 participants