-
Hi, I would like to create my own custom theme, but when I copy vuepress-next/packages/@vuepress/theme-default/src/ into my project I have the error shown below. My project is at https://github.com/JulioJu/blog . It is very little. I've seen that the I guess it's not possible currently.
Thanks in advance 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The command
Now: // docs/theme/config.ts
clientAppEnhanceFiles: path.resolve(__dirname, './clientAppEnhance.js'),
clientAppSetupFiles: path.resolve(__dirname, './clientAppSetup.js'), Change the file suffix // docs/theme/config.ts
clientAppEnhanceFiles: path.resolve(__dirname, './clientAppEnhance.ts'),
clientAppSetupFiles: path.resolve(__dirname, './clientAppSetup.ts'), |
Beta Was this translation helpful? Give feedback.
The command
vuepress eject
was removed, you can try to useextends
.useSidebarItems
required provider injected from.clientAppSetup.ts
, however, it won't work in your case because the default theme will released after compile to javascript but you are using it directly. So you can update your theme config to fix this error like below:Now:
Change the file suffix
.js
to.ts
: