Skip to content

Extension Throws Exception at Activation in New Component Files #4457

@CristopherH95

Description

@CristopherH95

Vue - Official extension or vue-tsc version

2.0.21

VSCode version

1.90.0

Vue version

3.4.21

TypeScript version

5.4.0

System Info

No response

Steps to reproduce

  1. Create a new project, such as those generated by npm create vue@latest.
  2. Add a devcontainer.json file in a .devcontainer in the root of the project, configured to provide a Node.js and Typescript environment and install the Vue - Official extension.
  3. Reopen the project in the DevContainer.
  4. Install dependencies specified in package.json.
  5. The installed Vue - Official extension appears to work, with IntelliSense running and utilities like "go to definition" working as expected.
  6. Attempt to create a new single file component (e.g., MyTest.vue).
  7. The Vue - Official extension appears to no longer work completely as expected in the new component file (e.g., if importing an existing component, there is no auto-import and "go to definition" does not work).
  8. Observe that the extension now reports uncaught errors during activation.

Link to minimal reproduction

https://github.com/CristopherH95/Vue-Extension-Issue

Any additional comments?

This issue was originally encountered while using Podman with a DevContainer environment for a Vuetify project. This also seemed to occur for me the same in a "vanilla" Vue project such as one in the provided GitHub repo. Upon a quick test, it looks like I also run into this outside of the DevContainer as well.

Examples of errors seen:
Screenshot 2024-06-10 090304
Screenshot 2024-06-10 090328

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions