pinia error on RC8 build
See original GitHub issueEnvironment
Nuxt project info: 02:11:39
- Operating System:
Windows_NT
- Node Version:
v16.15.1
- Nuxt Version:
3.0.0-rc.8
- Package Manager:
npm@8.13.2
- Builder:
vite
- User Config:
modules
,nitro
,buildModules
,css
- Runtime Modules:
@nuxtjs/tailwindcss@5.3.2
- Build Modules:
@pinia/nuxt@0.3.1
Reproduction
When i am trying to build (npm run build) :
npm run build
build nuxt build
Nuxt CLI v3.0.0-rc.8 02:12:47 i Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 02:12:56 i Client built in 3678ms 02:13:02 i Building server… 02:13:02 √ Server built in 1608ms 02:13:03 √ Generated public .output/public nitro 02:13:03 start Building server… nitro 02:13:04
ERROR Rollup error: Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open ‘C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs’
ERROR Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open ‘C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs’
Describe the bug
When i am trying to run this npm run build . On my machine or on vercel. I receive the same errors.
npm run build
ERROR Rollup error: Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open ‘C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs’
ERROR Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open ‘C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs’
Additional context
package json:
{ “private”: true, “scripts”: { “build”: “nuxt build”, “dev”: “nuxt dev”, “generate”: “nuxt generate”, “preview”: “nuxt preview” }, “dependencies”: { “@nuxtjs/axios”: “^5.13.6”, “@nuxtjs/tailwindcss”: “^5.1.2”, “@pinia/nuxt”: “^0.3.0”, “axios”: “^0.27.2”, “nuxt”: “^3.0.0-rc.6” } }
Logs
npm run build
> build
> nuxt build
Nuxt CLI v3.0.0-rc.8 02:12:47
i Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 02:12:56
i Client built in 3678ms 02:13:02
i Building server... 02:13:02
√ Server built in 1608ms 02:13:03
√ Generated public .output/public nitro 02:13:03
start Building server... nitro 02:13:04
ERROR Rollup error: Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open 'C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs'
ERROR Could not load C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs (imported by .nuxt/dist/server/server.mjs): ENOENT: no such file or directory, open 'C:\Users\husen\code\FuracaoDublin2\node_modules\pinia\dist\pinia.mjs\dist\pinia.mjs'
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
@caio-emidio I hope your issue is solved but if didn’t don’t hesitate to DM me ib discord.
@caio-emidio you need to install
pinia
itself alongside the@pinia/nuxt
😃