Closed recoluan closed 7 months ago
It seems that you have two different copies in your node_modules with different typescript version. Please consider:
pnpm dedupe
After I upgraded the version of 'typescript', I reported the following exception:
After I upgraded the version of 'typescript', I reported the following exception:
![]()
I found that this error occurs in plugin only, so I implemented useThemeLocaleData in plugin to solve this problem, but I don't know if there is any other good way. Similar issue in the past have been for a long time and have no reference value.
I believed this is also because of multiple package instances in your repo. Double check that. At least we have no issues in vuepress-theme-hope repo, which probably has 3x lines comparing to your repo and also with a lot of plugins.
It also use plugin-theme-data
and calls useThemeLocaleData
, but works well.
Description
When I bump the vuepress dependencies of the custom theme to 2.0.0-rc.0 from 2.0.0-beta.67 , I reported the error "chunk-DHNSDB55.js?v=dbacff81:43 Uncaught (in promise) Error: usePageFrontmatter () is called without provider."
Reproduction
https://github.com/vuepress-reco/vuepress-theme-reco/tree/feature/bump-dependencies-to-2.0.0-rc.0
Used Package Manager
pnpm
System Info