veaury icon indicating copy to clipboard operation
veaury copied to clipboard

Failed to resolve import "virtual:generated-pages"

Open JAVPHP opened this issue 2 years ago • 1 comments

1665974675851 1665974772611

按照要求配置,但是报错 Failed to resolve import "virtual:generated-pages" from "src\router\index.ts". Does the file exist? image

JAVPHP avatar Oct 17 '22 02:10 JAVPHP

@JAVPHP 看上去好像不是veaury的问题,你这个错误应该是vite-plugin-pages报的,之前有人提过关于vite-plugin-pages的问题,可以参考一下https://github.com/devilwjp/veaury/issues/16
因为现在同时有vue和react,你需要在vite-plugin-pages中指明是哪个框架的页面

devilwjp avatar Oct 17 '22 04:10 devilwjp