Skip to content

How eject theme #56

Answered by yzx9
JulioJu asked this question in Q&A
Feb 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The command vuepress eject was removed, you can try to use extends.

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:

// docs/theme/config.ts
clientAppEnhanceFiles: path.resolve(__dirname, './clientAppEnhance.js'),
clientAppSetupFiles: path.resolve(__dirname, './clientAppSetup.js'),

Change the file suffix .js to .ts:

// docs/theme/config.ts
clientAppEnhanceFiles: path.resolve(__dirname, './clientAppEnhance.ts'),
clientAppSetupFiles: path.resolve(__dirname, './clientApp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JulioJu
Comment options

Answer selected by meteorlxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants