vuepress-reco / vuepress-theme-reco-1.x

🎨 This is the repo for vuepress-theme-reco 1.
http://v1.vuepress-reco.recoluan.com
MIT License
1.63k stars 320 forks source link

打包时报错:[Vue warn]: Error in render: "TypeError: Cannot read property 'match' of undefined" #416

Open Eastboat opened 1 year ago

Eastboat commented 1 year ago

Bug report

npm run build时报一个路由错误,之前使用1.x版本挺好的, 最近突然就这样.....

npm run build Times a routing error, before using 1.x version is fine, recently suddenly like this.....

What is actually happening?

[Vue warn]: Error in render: "TypeError: Cannot read property 'match' of undefined"

found in

---> <NavLink>
       <NavLinks>
         <Navbar>
           <Common>
             <Anonymous>
               <GlobalLayout>
                 <Root>
// ......
// ......
error Error rendering /docs/theme-reco/api.html: false
undefined
error Error rendering /docs/theme-reco/axios.html: false
undefined
error Error rendering /docs/theme-reco/theme.html: false
undefined
error Error rendering /docs/theme-reco/plugin.html: false
undefined
error Error rendering /docs/theme-reco/: false
undefined
TypeError: Cannot read property 'match' of undefined
    at ensureExt (node_modules/_vuepress-theme-reco@1.6.16@vuepress-theme-reco/helpers/utils.js:35:25)
    at 0.server-bundle.js:1683:92

WX20221209-160826@2x

Other relevant information

H-TWINKLE commented 1 year ago

同样遇到问题

recoluan commented 1 year ago

建议升级2.0吧,1.0不维护了