[commonjs--resolver] Failed to resolve entry for package "pinia-plugin-persistedstate".
P2K0 opened this issue · 2 comments
P2K0 commented
Are you using Nuxt?
- Check this box if you encountered the issue using Nuxt and the included module.
Describe the bug
When I have used pinia-plugin-persistedstate@3.2.1 He works for me
3.2.1 demo https://stackblitz.com/edit/vitejs-vite-jcktpk?file=package.json
When I have used pinia-plugin-persistedstate@3.2.2 It will report an error
3.2.2 demo https://stackblitz.com/edit/vitejs-vite-x9ywdl?file=package.json
+ pinia-plugin-persistedstate 3.2.2 (4.0.0-alpha.4 is available)
✓ 17 modules transformed.
[commonjs--resolver] Failed to resolve entry for package "pinia-plugin-persistedstate". The package may have incorrect main/module/exports specified in its package.json.
error during build:
Error: Failed to resolve entry for package "pinia-plugin-persistedstate". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///usr/local/lib/node_modules/vite/dist/node/chunks/dep-Pluk1iaB.js:29448:17)
at resolvePackageEntry (file:///usr/local/lib/node_modules/vite/dist/node/chunks/dep-Pluk1iaB.js:29445:5)
at tryNodeResolve (file:///usr/local/lib/node_modules/vite/dist/node/chunks/dep-Pluk1iaB.js:29215:20)
at Object.resolveId (file:///usr/local/lib/node_modules/vite/dist/node/chunks/dep-Pluk1iaB.js:28983:28)
at file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:18637:40
at async PluginDriver.hookFirstAndGetPlugin (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:18537:28)
at async resolveId (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17206:26)
at async ModuleLoader.resolveId (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17620:15)
at async Object.resolveId (file:///usr/local/lib/node_modules/vite/dist/node/chunks/dep-Pluk1iaB.js:8141:10)
at async PluginDriver.hookFirstAndGetPlugin (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:18537:28)
at async resolveId (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17206:26)
at async ModuleLoader.resolveId (file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17620:15)
at async file:///usr/local/lib/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17927:50
Reproduction
https://stackblitz.com/edit/vitejs-vite-x9ywdl?file=package.json
System Info
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 15.22 GB / 31.75 GB
Binaries:
Node: 20.17.0 - ~\AppData\Local\fnm_multishells\8968_1724892197053\node.EXE
Yarn: 1.22.22 - ~\AppData\Local\fnm_multishells\8968_1724892197053\yarn.CMD
npm: 10.8.2 - ~\AppData\Local\fnm_multishells\8968_1724892197053\npm.CMD
pnpm: 9.9.0 - ~\AppData\Local\fnm_multishells\8968_1724892197053\pnpm.CMD
Browsers:
Edge: Chromium (100.0.1185.36)
Internet Explorer: 11.0.22621.3527
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible of the bug.
P2K0 commented
I found that when I created a question, several people left comments and provided me with a Trojan program to download and execute the report information provided. I forgot to save the screenshot