You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
主题仓库:https://github.com/theme-shoka-x/ShokaX-UI-Kit/tree/main/apps/valaxy-theme-shokax
在使用 valaxy 运行 demo 时,首页正常,但任何的文章界面都无法渲染加载,控制台提示如下:



展开错误并使用断点调试可以看到:
此处 router 存在 Symbol(loaderEntries) 对应的属性,但是 LOADER_ENTRIES_KEY 无法获取到这个属性,导致 entries 为 undefined
使用控制台人为获取属性对应的Symbol和此处的 LOADER_ENTRIES_KEY:
正常情况下这两个 Symbol 是应当相等的,但此处不相等。所以渲染失败
使用devtools修改LOADER_ENTRIES_KEY的值为通过上述方法获取到的Symbol后该部分正常,但是从unplugin-vue-router导出的所有Symbol均存在此问题,所以渲染仍然会失败
将包管理器从bun修改为pnpm、使用rolldown-vite/vite均无法解决此问题,checkout到最早的初始版本也存在此问题。已经测试了unplugin-vue-router从0.15.0到0.19.0的大部分版本,均存在此问题
我不确认这是 valaxy 还是 unplugin-vue-router 的问题,但是我后续针对 unplugin-vue-router 的单独测试无法复现这个问题,所以我把本Q&A发到了这里
请问应该如何解决这个问题
All reactions