[plugin:vite:import-analysis] Failed to resolve import "@theme/components/Home.vue" from "node_modules/@vuepress/theme-default/layouts/Layout.vue". Does the file exist?
/Users/champcamba/Code/wordpress/ultimatemember/docs-v3/node_modules/@vuepress/theme-default/layouts/Layout.vue:47:19
1 |
2 | import Home from '@theme/components/Home.vue'
| ^
3 | import Navbar from '@theme/components/Navbar.vue'
4 | import Page from '@theme/components/Page.vue'
And my workaround is adding the aliases in config.js:
Description
I tried following the exact codes for adding content to slots: https://vuepress.github.io/reference/default-theme/extending.html#layout-slots
I'm getting the following error:
And my workaround is adding the aliases in config.js:
Reproduction
I couldn't reproduce this issue on the playground site
Used Package Manager
pnpm
System Info