valaxyjs / valaxy-theme-starter

🎨 Starter template for valaxy-theme.
https://starter.valaxy.site
MIT License
10 stars 2 forks source link

After the first download, execute the `pnpm build` command, prompt for build failure #5

Closed z-xl-t closed 1 year ago

z-xl-t commented 1 year ago

Operating Steps:

  1. Create a new repository from valaxy-theme-starter (use the temeplate)
  2. git clone git@github.com:zmxlt/valaxy-theme-aurora.git
  3. cd valaxy-theme-aurora
  4. pnpm i success
  5. pnpm dev success
  6. pnpm demo success
  7. pnpm build report errors
D:\blog\valaxy-theme-aurora\node_modules\.pnpm\vite-ssg@0.22.1_@vueuse+head@1.0.26_critters@0.0.16_vite@4.1.2_vue-router@4.1.6_vue@3.2.47\node_modules\vite-ssg\dist\shared\vite-ssg.45ed6849.cjs:1048
        throw new Error(`${kolorist.gray("[vite-ssg]")} ${kolorist.red(`Error on page: ${kolorist.cyan(route)}`)}
              ^

Error: [vite-ssg] Error on page: /:all(.*)*
Error: ENOENT: no such file or directory, open 'D:\blog\valaxy-theme-aurora\demo\dist\:all(.*)*.html'
    at D:\blog\valaxy-theme-aurora\node_modules\.pnpm\vite-ssg@0.22.1_@vueuse+head@1.0.26_critters@0.0.16_vite@4.1.2_vue-router@4.1.6_vue@3.2.47\node_modules\vite-ssg\dist\shared\vite-ssg.45ed6849.cjs:1048:15
    at async run (D:\blog\valaxy-theme-aurora\node_modules\.pnpm\vite-ssg@0.22.1_@vueuse+head@1.0.26_critters@0.0.16_vite@4.1.2_vue-router@4.1.6_vue@3.2.47\node_modules\vite-ssg\dist\shared\vite-ssg.45ed6849.cjs:629:36)

image

YunYouJun commented 1 year ago

Just upgrade deps, and then it works well.

I update this template.