antfu / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use vite-plugin-compress

riderx opened this issue · comments

i just try to install https://github.com/alloc/vite-plugin-compress
to allow assets compression in my build.
i use vitesse. And go this error:

[vite-ssg] Rendering Pages... (13)
[vite-ssg] Critical CSS generation enabled via `critters`

[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
(node:25666) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token n JSON at position 0
    at JSON.parse (<anonymous>)
    at build (/Users/martindonadieu/Documents/Projects.nosync/captime-website/node_modules/.pnpm/vite-ssg@0.17.10_dd54dbe7cd94e1099491b8367e8c8198/node_modules/vite-ssg/dist/node/cli.cjs:193:28)
    at async Object.handler (/Users/martindonadieu/Documents/Projects.nosync/captime-website/node_modules/.pnpm/vite-ssg@0.17.10_dd54dbe7cd94e1099491b8367e8c8198/node_modules/vite-ssg/dist/node/cli.cjs:314:3)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:25666) 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: 2)
(node:25666) [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.