You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a custom theme following the docs, and then installing it in another VitePress page, it throws an error at docs:build (working fine on docs:dev:
Cannot find module '/home/silvester/Desktop/temp3/page/node_modules/vitepress/dist/client/theme-default/without-fonts' imported from /home/silvester/Desktop/temp3/page/node_modules/vitepress/dist/client/theme-default/index.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/silvester/Desktop/temp3/page/node_modules/vitepress/dist/client/theme-default/without-fonts' imported from /home/silvester/Desktop/temp3/page/node_modules/vitepress/dist/client/theme-default/index.js
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at moduleResolve (node:internal/modules/esm/resolve:933:10)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:510:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:96:40)
at link (node:internal/modules/esm/module_job:95:36)
Describe the bug
When creating a custom theme following the docs, and then installing it in another VitePress page, it throws an error at
docs:build
(working fine ondocs:dev
:Reproduction
Reproduction repository: https://github.com/silvester-pari/vitepress-custom-theme-error
(Follow instructions in Readme)
Expected behavior
When extending a Theme based on the DefaultTheme, it should work.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: