Closed YconquestY closed 1 year ago
Provide a minimal reproduction by opening an new issue plz. You are definitely not providing a minimal production, and no one has any insterest digging in to thousands of lines.
Hello @YconquestY. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
I just encountered this issue and it was resolved after I re-built my pnpm-lock.yaml
file.
I got the same issue when upgrade from 2.0.0-beta.48
to 2.0.0-beta.50
, still no luck yet
Seems caused by https://github.com/vuepress/vuepress-next/blob/d283ffe3ef0668bfea54e6d973066695f46f13c0/ecosystem/plugin-theme-data/src/client/config.ts#L17
Why routeLocale
is undefined
?
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
at ReactiveEffect.fn (config.js:10:100)
at ReactiveEffect.run (reactivity.esm-bundler.js:185:25)
at get value [as value] (reactivity.esm-bundler.js:1144:39)
at setupDarkMode (useDarkMode.js:21:73)
at Object.setup (config.js:35:9)
at setup (app.js?v=6ec5f7fd:249:29)
at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
at setupStatefulComponent (runtime-core.esm-bundler.js:7165:29)
at setupComponent (runtime-core.esm-bundler.js:7120:11)
at mountComponent (runtime-core.esm-bundler.js:5473:13)
Seems caused by
Why
routeLocale
isundefined
?Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value') at ReactiveEffect.fn (config.js:10:100) at ReactiveEffect.run (reactivity.esm-bundler.js:185:25) at get value [as value] (reactivity.esm-bundler.js:1144:39) at setupDarkMode (useDarkMode.js:21:73) at Object.setup (config.js:35:9) at setup (app.js?v=6ec5f7fd:249:29) at callWithErrorHandling (runtime-core.esm-bundler.js:155:22) at setupStatefulComponent (runtime-core.esm-bundler.js:7165:29) at setupComponent (runtime-core.esm-bundler.js:7120:11) at mountComponent (runtime-core.esm-bundler.js:5473:13)
Have you resolved it?
Description
I use the default theme and a KaTeX plugin. After installing the dependencies, errors occur when running
npm run docs:build
. The problem is reproduced here, and a brief log is below:Reproduction
https://stackblitz.com/edit/vuepress-scrkty
Used Package Manager
npm
System Info