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

help: Pinia stores are empty in devtools #724

Closed
wanderowski opened this issue Sep 12, 2024 · 9 comments · Fixed by #751
Closed

help: Pinia stores are empty in devtools #724

wanderowski opened this issue Sep 12, 2024 · 9 comments · Fixed by #751
Labels
help wanted Extra attention is needed

Comments

@wanderowski
Copy link

wanderowski commented Sep 12, 2024

📚 What are you trying to do?

Hello!

We just initialized our monorepo with three nuxt projects in it. The problem is that we use pinia in our projects and if I open devtools, I see the pinia tab, but all the stores inside are empty. I tried to google it out, but I cannot find anyone with the same issue. Any ideas on how to solve this?

image

🔍 What have you tried?

No response

ℹ️ Additional context

No response

@wanderowski wanderowski added the help wanted Extra attention is needed label Sep 12, 2024
@arashsheyda
Copy link
Member

Please provide a minimal reproduction. Thanks.

Why reproduction is required

@dvogelg4al
Copy link

Happening to me too in Chrome (incognito also doesn't work), working in Firefox and Edge. Can't really provide a reproduction since it worked fine for months and just seemingly randomly stopped working

@martinszeltins
Copy link

I upgraded from Nuxt 3.13 to 3.14 and now I also see "No Data"

@manniL
Copy link
Member

manniL commented Nov 16, 2024

@OrbisK
Copy link

OrbisK commented Nov 18, 2024

Repro is https://stackblitz.com/~/github.com/martinszeltins/nuxt-3-14-pinia-issue?file=app.vue from nuxt/nuxt#29944

does not repoduce for me.

Image

A friend of mine got the same problem and we discovered that it is (atleast for him) related to the chrome extension vue dev tools. Removing vue devtools fixed it for now, or opening the vue devtools pinia tab.

Ill try to reproduce today :)

@OrbisK
Copy link

OrbisK commented Nov 18, 2024

Reproduction:

  • clone https://github.com/OrbisK/nuxt-devtools-pinia (fresh nuxt installation with nuxt pinia), dont use sandbox/stackblitz
  • pnpm i && pnpm dev
  • make sure to have Vue devtools chrome extension (v. 7.6.4 for me)
  • open http://localhost:3000
  • open nuxt devtools pinia -> no data
  • open vue devtools pinia -> data in vue and nuxt devtools
  • open a incognito (private) tab (ctrl + shift +n) or remove/disable vue devtools
  • open nuxt devtools again
  • data is there

@martinszeltins
Copy link

martinszeltins commented Nov 18, 2024

@OrbisK I just tested with Vue Devtools extension and it looks like that is the problem. If Vue devtools ir enabled then it breaks. But it happens starting with Nuxt 3.14

Image

@wanderowski
Copy link
Author

@martinszeltins @OrbisK @manniL Thank you for your answers! I completely forgot about this issue. I recently installed the Vue Devtools extension, and now I use it to check my stores. However, I want to mention that the problem appeared for me before the extension was installed. Disabling the extension doesn’t solve the issue for me either.

@dvogelg4al
Copy link

Disabling the vue extension worked for me, thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants