Skip to content

Failed to resolve component every time when the project is restarted #714

@jsoulshine

Description

@jsoulshine

Describe the bug

When I first write a component, the automatic import will take effect, the page can use the component normally, and the project runs normally.

However, when I restart the project, the automatic import will become invalid, and components that could have been displayed normally before will also be unable to be parsed.

At this point, I rewrite a component that still works properly. But if you restart again, neither of the previously written components will be able to be parsed

Console report: Failed to resolve component: xxx

Reproduction

https://github.com/jsoulshine/unplugin-vue-cmp-test HelloWorld in App.vue can not be resolved

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz
    Memory: 822.71 MB / 15.74 GB
  Binaries:
    Node: 16.20.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - D:\nvm\node_global\yarn.CMD
    npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.10.5 - D:\nvm\node_global\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.3570.0), Chromium (119.0.2151.58)  
    Internet Explorer: 11.0.19041.3570

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy