vuepress-reco / vuepress-theme-reco

🎨 This is the repo for vuepress-theme-reco 2.
https://vuepress-theme-reco.recoluan.com
MIT License
539 stars 175 forks source link

2.x项目build错误,提示 Error: usePageFrontmatter() is called without provider. #88

Closed Burial0268 closed 1 year ago

Burial0268 commented 1 year ago

如题,我在执行yarn build的时候,提示: ⠴ Compiling with vite (!) Some chunks are larger than 500 KiB after minification. Consider:

构建是能构建,但控制台报错: app.1d43407d.js:1

   Error: usePageFrontmatter() is called without provider.
at O7 (app.1d43407d.js:389:11531)
at Y7 (app.1d43407d.js:389:14214)
at Object.setup (app.1d43407d.js:389:2300052)
at setup (app.1d43407d.js:389:2304518)
at J2 (app.1d43407d.js:1:15089)
at jc (app.1d43407d.js:1:55591)
at Ac (app.1d43407d.js:1:55376)
at O1 (app.1d43407d.js:1:44883)
at g (app.1d43407d.js:1:39105)
at v (app.1d43407d.js:1:38239)

求解决

recoluan commented 1 year ago

Try to update reco theme to latest version 1.6.14.

Burial0268 commented 1 year ago

Try to update reco theme to latest version 1.6.14.

这个我解决了,但是他会报 #89 的错误

recoluan commented 1 year ago

It does not affect the normal use of compiled files, can be temporarily ignored, later repair.

hanhanhan1124 commented 1 year ago

Try to update reco theme to latest version 1.6.14.

这个我解决了,但是他会报 #89 的错误

请问怎么解决的呢

hanhanhan1124 commented 1 year ago

Try to update reco theme to latest version 1.6.14.

这个我解决了,但是他会报 #89 的错误

求教大佬

Burial0268 commented 1 year ago

这个issue挺早的了,现在我也忘了当时是怎么解决的,抱歉,帮不了你