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

[Bug]: Cannot start nuxt: Cannot find module #283

Open
3 tasks done
robmontesinos opened this issue Oct 19, 2024 · 4 comments
Open
3 tasks done

[Bug]: Cannot start nuxt: Cannot find module #283

robmontesinos opened this issue Oct 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@robmontesinos
Copy link

Please take a moment to familiarize yourself with this project scope and standards

Environment

- Operating System: `Darwin`
- Node Version:     `v21.5.0`
- Nuxt Version:     `3.13.2`
- CLI Version:      `3.14.0`
- Nitro Version:    `2.9.7`
- Package Manager:  `[email protected]`
- Builder:          `-`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`

Minimal reproduction link

No

Describe the bug/issue

Upon first relaunch of dev server since last nuxt-social-share update ("@stefanobartoletti/nuxt-social-share": "^1.1.4",), we got the "Cannot start nuxt" error. We have to remove this module to continue developing but hope that you can fix the issue. We tried removing and reinstalling module, deleting node_modules and pnpm-lock.yaml to no avail.

Browsers

No response

Logs

Error while requiring module @stefanobartoletti/nuxt-social-share: Error: Cannot find module '/home/stefano/Sviluppo/Personali/nuxt-social-share/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/index.js'
Require stack:
- /Users/xxxx/xxxxxx/xxxxxxx/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@stefanobartoletti/nuxt-social-share/dist/module.mjs


[6:42:34 PM]  ERROR  Cannot start nuxt:  Cannot find module '/home/stefano/Sviluppo/Personali/nuxt-social-share/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/index.js'
Require stack:
- /Users/xxxx/xxxx/xxxxx/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@stefanobartoletti/nuxt-social-share/dist/module.mjs

Additional context

No response

@robmontesinos robmontesinos added the bug Something isn't working label Oct 19, 2024
@YannMLD
Copy link

YannMLD commented Oct 19, 2024

I was able to relaunch the app by downgrading to 1.1.2

@stefanobartoletti
Copy link
Owner

Thanks for reporting this, but I'm unable to reproduce the issue. Testing it on multiple sites of mine, everything is working fine.

Without a minimal reproducible environment, unfortunately I am unable to help you.

@stefanobartoletti
Copy link
Owner

Ok, on a closer inspection, apparently the package was incorrectly built in v1.1.4, but everything should be solved now on v1.1.5

@robmontesinos @YannMLD can you please test and confirm that the latest version is working correctly again?

@robmontesinos
Copy link
Author

@stefanobartoletti Thank you so much Stefano. My first step was 'pnpm add @stefanobartoletti/nuxt-social-share' and version 1.1.4 was installed according to package.json and the same errors were generated.

I then entered 'pnpm add @stefanobartoletti/nuxt-social-share@latest' which installed version 1.1.5 and Bang Zoom!! It worked perfectly like before. Grazie Stefano - great work and so fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants