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

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

Open
5 tasks done
jsoulshine opened this issue Nov 16, 2023 · 1 comment
Open
5 tasks done

Comments

@jsoulshine
Copy link

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.
@itmanyong
Copy link

Amazingly, the NButton on the login page can parse and display normally, but not here, tried various ways, only manual import can restore normal
image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants