unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

每当重启项目之后,组件的自动引入就会失效,组件将无法解析

Open jsoulshine opened this issue 2 years ago • 0 comments

Describe the bug

当我首次书写一个组件(自定义的最简单的小组件)后,自动引入会生效,页面可正常使用组件,项目运行正常。 但是,当我重启项目之后,自动引入就会失效,之前可正常展示的组件也会无法解析。 控制台报:Failed to resolve component: xxx 配置如下: image

Reproduction

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

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

jsoulshine avatar Nov 16 '23 03:11 jsoulshine