pinia: @pinia/nuxt latest version gives error

Reproduction

https://github.com/Rigo-m/pinia-issue-repro

Steps to reproduce the behavior

  1. yarn
  2. yarn dev

Expected behavior

Should work

Actual behavior

Throws error because vue composition api is being imported twice

Additional information

Latest node LTS

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Nice one, thats all working now. Thanks for the fix!

This should be good now! Let me know if you find issues by opening a new issue with a boiled down repro.

Refer to https://github.com/piniajs for examples with the proper configurations

@posva I’m sorry to disagree, but as soon as I install > 0.1.0, I get this when starting nuxt3:

WARN [warning] You are using CommonJS version of @nuxt/kit that is an ESM-only package. CJS support will be dropped in stable release.

ERROR Cannot start nuxt: loadNuxt is not a function

This seems to be an issue when using nuxt3 beta too. Not sure if its the same issue but I thought I would make a note.