Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitepress using pinia-plugin-persistedstate throws an error during build #367

Open
4 of 5 tasks
T-miracle opened this issue Dec 31, 2024 · 4 comments
Open
4 of 5 tasks
Labels
🔍️ pending triage This issue needs to be looked into

Comments

@T-miracle
Copy link

Are you using Nuxt?

  • Check this box if you encountered the issue using Nuxt and the included module.

Describe the bug

build throw an error:

image

In the latest version, this issue occurs, but it works fine in v3.2.3.

Reproduction

https://github.com/T-miracle/vitepress_use_pinia_plugin_persistedstate_build_error

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 11.00 GB / 31.70 GB
  Binaries:
    Node: 20.10.0 - C:\Software\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.2.3 - C:\Software\nodejs\npm.CMD
    pnpm: 8.7.1 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

pnpm

Validations

@T-miracle T-miracle added the 🔍️ pending triage This issue needs to be looked into label Dec 31, 2024
@messenjer
Copy link

In the latest version, this issue occurs, but it works fine in v3.2.3.

Do you mean the version v4.1.3 ?

@T-miracle
Copy link
Author

In the latest version, this issue occurs, but it works fine in v3.2.3.

Do you mean the version v4.1.3 ?

image
is v4.2.0

@T-miracle
Copy link
Author

In the latest version, this issue occurs, but it works fine in v3.2.3.

Do you mean the version v4.1.3 ?

image
v4.1.3 also has this problem

@Ena-Heleneto
Copy link

VitePress is an SSG (Static Site Generation) architecture, and you need to check if you're on the client side during the build, as the server does not have the window object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍️ pending triage This issue needs to be looked into
Projects
None yet
Development

No branches or pull requests

3 participants