Build error
jbaubree opened this issue · comments
Jean-Baptiste AUBRÉE commented
From 225d105 commit changes in i18n file, a simple git clone of vitesse with pnpm i
and pnpm build
makes a vite-ssg
build error :
[vite-ssg] Build for client...
vite v2.9.5 building for production...
✓ 83 modules transformed.
dist/index.html 1.03 KiB
dist/manifest.webmanifest 0.38 KiB
dist/ssr-manifest.json 5.14 KiB
dist/assets/404.a4ffb3db.js 0.48 KiB / gzip: 0.34 KiB
dist/assets/home.750972c8.js 0.37 KiB / gzip: 0.28 KiB
dist/assets/README.5aeea1a9.js 1.23 KiB / gzip: 0.56 KiB
dist/assets/virtual_pwa-register.5acef10f.js 5.53 KiB / gzip: 2.31 KiB
dist/assets/_...all_.e0f29530.js 0.22 KiB / gzip: 0.18 KiB
dist/assets/about.37446600.js 1.76 KiB / gzip: 0.75 KiB
dist/assets/home.70aa1dc6.css 0.00 KiB / gzip: 0.02 KiB
dist/assets/_name_.ce553827.js 0.95 KiB / gzip: 0.57 KiB
dist/assets/README.7c88450d.css 0.00 KiB / gzip: 0.02 KiB
dist/assets/404.a9d4f0d8.css 0.00 KiB / gzip: 0.02 KiB
dist/assets/_name_.7e30c135.css 0.00 KiB / gzip: 0.02 KiB
dist/assets/about.43cdaa54.css 0.00 KiB / gzip: 0.02 KiB
dist/assets/app.bb1090e0.css 21.10 KiB / gzip: 5.76 KiB
dist/assets/app.ca108f07.js 140.83 KiB / gzip: 50.95 KiB
PWA v0.11.13
mode generateSW
precache 20 entries (173.49 KiB)
files generated
dist/sw.js
dist/workbox-f51ab5e4.js
[vite-ssg] Build for server...
vite v2.9.5 building SSR bundle for production...
✓ 40 modules transformed.
.vite-ssg-temp/manifest.webmanifest 0.38 KiB
.vite-ssg-temp/main.mjs 55.64 KiB
.vite-ssg-temp/assets/style.ac61e151.css 13.75 KiB
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
(node:40810) UnhandledPromiseRejectionWarning: TypeError: key.split(...).at is not a function
at file:///Users/jb/Downloads/vitesse/.vite-ssg-temp/main.mjs:880:32
at Array.map (<anonymous>)
at file:///Users/jb/Downloads/vitesse/.vite-ssg-temp/main.mjs:878:607
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async Object.build (/Users/jb/Downloads/vitesse/node_modules/.pnpm/vite-ssg@0.19.2_eacfe4bd4e3401e3e0916bc5279e5ce7/node_modules/vite-ssg/dist/chunks/build.cjs:171:87)
at async Object.handler (/Users/jb/Downloads/vitesse/node_modules/.pnpm/vite-ssg@0.19.2_eacfe4bd4e3401e3e0916bc5279e5ce7/node_modules/vite-ssg/dist/node/cli.cjs:25:3)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:40810) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:40810) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I dont know if i need to make an issue on vite-ssg
, i put this issue here because we can not build actual version of this template :)