Closed SWDevStudio closed 2 months ago
same. i when build nuxt project error commonjs. i did revert to old version
same. i when build nuxt project error commonjs. i did revert to old version
How old of a version did you revert to?
same thing happening here with the nuxt plugin.
same with me, few hours ago it works normally, then when i run
npm install
failed
I have to use the previous version
same. i when build nuxt project error commonjs. i did revert to old version
How old of a version did you revert to?
i use @pinia-plugin-persistedstate/nuxt@1.2.1 and it works perfectlly. Must be the exact version
I'm using 1.2.1 and am having this issue. It worked fine a couple of hours ago.
Same issue here, gentlemen.
I am using 3.2.1
.
What are you guys doing?
UPDATE:
Downgrade to 1.2.1
worked for me.
This error on 3.2.2
I added the pinia-plugin-persistedstate
package in version 3.2.1
to temporarily resolve the error in my Nuxt project
npm i pinia-plugin-persistedstate@3.2.1
Installed @pinia-plugin-persistedstate/nuxt@1.2.1 with pinia-plugin-persistedstate@3.2.1
This seems to be working.
This is working for me: @pinia-plugin-persistedstate/nuxt@1.2.1 pinia-plugin-persistedstate@3.2.1
This is working for me: pinia-plugin-persistedstate@3.2.1
This is working for me: @pinia-plugin-persistedstate/nuxt@1.2.1 pinia-plugin-persistedstate@3.2.1
@trspro67 still not working for me. did you install these 2 plugins in your project? can I see your nuxt.config?
I installed both with pnpm, but only @pinia...@1.2.1 is a nuxt module and included in nuxt.config.
I installed both with pnpm, but only @pinia...@1.2.1 is a nuxt module and included in nuxt.config.
@davesawatzky thanks for the reply, how to use persist in pinia store now? when I remove @pinia-plugin-persistedstate/nuxt module from nuxt.config. I got error "persistedState is not defined"
Keep the @pinia module in nuxt config. pinia-plugin-persistedstate@3.2.1 is only installed through npm and in package.json
export default defineNuxtConfig({ modules: [ '@pinia-plugin-persistedstate/nuxt' ], })
I'm currently working on v4 and accidentaly published an alpha as "latest" so rushed a republish of v3. Thing is tsup
changed the extensions and defaulting to .js
instead of .mjs
for ESM.
This should be resolved in 3.2.3.
Sorry for the inconvenience. 😌
Are you using Nuxt?
Describe the bug
Can you help identify the problem? I don't quite understand the cause. I tried installing the Nuxt plugin separately as well as together with the regular plugin, but I always encounter the same error.
I followed the instructions and installed the plugin for Nuxt
npm i -D @pinia-plugin-persistedstate/nuxt
I received an error in the console.
Pre-transform error: Failed to resolve entry for package "pinia-plugin-persistedstate". The package may have incorrect main/module/exports specified in its package.json.
Also, when trying to access the site, I get
My package.json
Reproduction
https://stackblitz.com/edit/nuxt-starter-iztozi?file=package.json,nuxt.config.ts
System Info
Used Package Manager
npm
Validations