Skip to content

Vite SSG + Vite+ #1315

@shyim

Description

@shyim

Describe the bug

Vite SSG and Vite+ is broken right now as the includedRoutes are not passed down with vite-plus.

file:///Users/shyim/Developer/shopmon/frontend/node_modules/vite-ssg/dist/shared/vite-ssg.D5Fdxh1E.mjs:1427
  routesPaths = Array.from(new Set(routesPaths));
                           ^

TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
    at new Set (<anonymous>)
    at build (file:///Users/shyim/Developer/shopmon/frontend/node_modules/vite-ssg/dist/shared/vite-ssg.D5Fdxh1E.mjs:1427:28)
    at async CAC.<anonymous> (file:///Users/shyim/Developer/shopmon/frontend/node_modules/vite-ssg/dist/node/cli.mjs:22:3)

Node.js v25.9.0

Reproduction

https://github.com/antfu-collective/vite-ssg/tree/main/examples

Steps to reproduce

  • Clone example
  • Convert to vite plus (vp migrate)
  • Building crashes

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.1
  Source   lts

Tool Paths:
  node  /Users/shyim/.vite-plus/js_runtime/node/24.14.1/bin/node
  npm   /Users/shyim/.vite-plus/js_runtime/node/24.14.1/bin/npm
  npx   /Users/shyim/.vite-plus/js_runtime/node/24.14.1/bin/npx

Used Package Manager

npm

Logs

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions