Skip to content

Bug: IDE Auto Import/Quick Fix Not Working for Vue Package Component in Template #4865

@incutonez

Description

@incutonez

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

1.93.1

Vue version

3.5.8

TypeScript version

5.6.2

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 17.34 GB / 31.85 GB
  Binaries:
    Node: 20.13.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

package.json dependencies

{
    "@incutonez/my-package": "^0.0.4",
    "vue": "^3.5.8"
}

Steps to reproduce

  1. Clone my repo
  2. cd repo && npm i
  3. Goto App.vue
  4. Remove the imports
  5. Use the quick fix menu "ctrl+." to import TestValue successfully
  6. Try to use the quick fix menu to import ComponentA in the template, but see that it's not possible
  7. Manually start typing out the import for ComponentA in the script and see that the IDE allows you to auto-complete

What is expected?

I should be able to see my component's name in the quick fix menu. Maybe my custom package is set up incorrectly, but this seems like a tooling issue.

What is actually happening?

I can't see my component in the quick fix menu.

Link to minimal reproduction

https://github.com/incutonez/ide-import-issue

Any additional comments?

Here's a recording of what I'm talking about. I've also tried to import in IntelliJ, and I get the same issue that VSCode has.

Recording.2024-09-22.172535.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions