Closed Mister-Hope closed 4 years ago
Confirm that there are some problems with this.$site.themeConfig
.
But this.$themeConfig
should work.
Fixed in vuepress-types@0.8.0
Excuse me, still catching errors in my project which I am tring to rewrite the theme-default
package with ts.
upgrade to the latest version, plz
My VSCode problem, on my Linux it's working fine.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I am meeting error with
themeConfig
inSiteData
hereIf there isn't any config, vuepress will generate a
{}
for themeConfig here.Now the expression like
this.$site.themeConfig.nav
in the default theme catches error because ts will think themeConfig can be undefined. If effects almost all the vue files intheme-default
package .For detail, you can simply add a folder with only a README.md file in it add let vuepress server it.