You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use pnpm build using vite-ssg build and received this error:
[vite-ssg] Build for server...
vite v5.4.1 building SSR bundle for production...
✓ 54 modules transformed.
.vite-ssg-temp/3gs38p19w8/assets/style-ChH4TTz9.css 6.44 kB
.vite-ssg-temp/3gs38p19w8/main.mjs 81.44 kB
✓ built in 685ms
[vite-ssg] Rendering Pages... (1)
file:///Users/etus_0128/Desktop/Projetos/quizmaker/frontend/node_modules/.pnpm/vite-ssg@0.23.8_vite@5.4.1_@types+node@20.16.1_sass-embedded@1.77.8_terser@5.31.6__vue@3.4.38_typescript@5.4.5_/node_modules/vite-ssg/dist/node.mjs:1058
throw new Error(`${gray("[vite-ssg]")} ${red(`Error on page: ${cyan(route)}`)}
^
Error: [vite-ssg] Error on page: /
ReferenceError: window is not defined
at file:///Users/etus_0128/Desktop/Projetos/quizmaker/frontend/.vite-ssg-temp/3gs38p19w8/main.mjs:2056:7
at ReactiveEffect.fn (/Users/etus_0128/Desktop/Projetos/quizmaker/frontend/node_modules/.pnpm/@vue+reactivity@3.4.38/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:928:13)
I know that has #23 similar error and i tried all that sugestions but i couldnt solve this problem.
Describe the bug
I tried to use
pnpm build
usingvite-ssg build
and received this error:I know that has #23 similar error and i tried all that sugestions but i couldnt solve this problem.
Somebody can help me with this issue?
Reproduction
Running vite-ssg build
System Info
System: OS: macOS 14.6.1 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 60.07 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.13.1 - /usr/local/bin/node Yarn: 1.22.21 - /usr/local/bin/yarn npm: 10.5.2 - /usr/local/bin/npm pnpm: 9.1.3 - ~/Library/pnpm/pnpm Browsers: Brave Browser: 127.1.68.134 Chrome: 128.0.6613.86 Safari: 17.6
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: