vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.49k stars 4.77k forks source link

The browser startup error occurred: useThemeLocaleData() is called without provider. #3082

Open TigerXZhang opened 2 years ago

TigerXZhang commented 2 years ago

This is my project package.json { "name": "tdh-pro-doc", "version": "1.0.0", "main": "index.js", "author": "Tiger X Zhang", "license": "MIT", "scripts": { "dev": "vuepress dev", "build": "vuepress build" }, "dependencies": { "@vuepress/cli": "2.0.0-beta.45", "@vuepress/core": "^1.9.7", "@vuepress/theme-default": "^1.9.7", "vuepress": "^2.0.0-beta.49" }, "devDependencies": { "@vuepress/client": "2.0.0-beta.49", "vue": "^3.2.37", "vuepress2-plugin-full-text-search": "^0.2.0" } } When I install dependencies via pnpm, I get an error starting the project: GET http://localhost:8080/pages/tdh-pro-doc/Users/tigerxzhang/Desktop/TDH/reference-project/tdh-pro-test-npm/tdh-pro-doc-test-node_modules/.vuepress/.temp/internal/layoutComponents net::ERR_ABORTED 404 (Not Found)

But when I install dependencies via yarn, I get an error starting the project:

image

Is there something wrong with it?

Eathyn commented 1 year ago

@TigerXZhang I had the same problem when switching from npm to yarn. It works for me after I upgraded the package version of vuepress@next to the lastest version (2.0.0-beta.51).