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

Error starting the project after installation #748

Closed
rbrt457 opened this issue Apr 28, 2024 · 3 comments
Closed

Error starting the project after installation #748

rbrt457 opened this issue Apr 28, 2024 · 3 comments
Labels
bug A bug that needs to be resolved closed-by-bot needs-reproduction Action needed: A valid reproduction of the issue needs to be added

Comments

@rbrt457
Copy link

rbrt457 commented Apr 28, 2024

Environment

  • Operating System: Windows_NT
  • Node Version: v20.11.1
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, typescript
  • Runtime Modules: @nuxtjs/[email protected], @sidebase/[email protected]
  • Build Modules: -

Reproduction

No response

Describe the bug

The error "Cannot find package 'next-auth' imported from D:\sidebase-p.nuxt\dev\index.mjs" is reproduced immediately after installing the Merino Stack. It is strange that the error appears immediately after installing the stack. All dependencies are installed.

image
image

Additional context

No response

Logs

WARN  "next-auth/providers/github" is imported by "server/api/auth/[...].ts", but could not be resolved – treating it as an external dependency.                             00:30:25  


 WARN  "next-auth/providers/credentials" is imported by "server/api/auth/[...].ts", but could not be resolved – treating it as an external dependency.                        00:30:25  


[00:30:25]  WARN  "next-auth/core" is imported by "node_modules/@sidebase/nuxt-auth/dist/runtime/server/services/authjs/nuxtAuthHandler.mjs", but could not be resolved – treating it as an external dependency.


[00:30:25]  WARN  "next-auth/jwt" is imported by "node_modules/@sidebase/nuxt-auth/dist/runtime/server/services/authjs/nuxtAuthHandler.mjs", but could not be resolved – treating it as an external dependency.

✔ Nuxt Nitro server built in 1407 ms                                                                                                                                   nitro 00:30:25

 ERROR  [worker reload] [worker init] Cannot find package 'next-auth' imported from D:\sidebase-p\.nuxt\dev\index.mjs                                                         00:30:25  

  at packageResolve (node:internal/modules/esm/resolve:853:9)
  at moduleResolve (node:internal/modules/esm/resolve:910:20)
  at defaultResolve (node:internal/modules/esm/resolve:1130:11)
  at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
  at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
  at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
  at link (node:internal/modules/esm/module_job:84:36)
@rbrt457 rbrt457 added bug A bug that needs to be resolved pending labels Apr 28, 2024
@phoenix-ru
Copy link
Collaborator

Have you added next-auth as a dependency?
https://sidebase.io/nuxt-auth/getting-started/installation#specifics-authjs-provider

@phoenix-ru phoenix-ru added needs-reproduction Action needed: A valid reproduction of the issue needs to be added and removed pending labels May 6, 2024
Copy link

github-actions bot commented May 6, 2024

Hello 👋

Please provide a reproduction for this issue 🙏

How can I create a reproduction?

Please use one of the following links to reproduce your issue.

Please ensure that the reproduction is as minimal as possible. This will allow us to isolate the issue as best as possible.

Here are some more amazing posts about the importance of reproductions:

Copy link

This issue was closed because it was open for 14 days without a reproduction.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved closed-by-bot needs-reproduction Action needed: A valid reproduction of the issue needs to be added
Projects
None yet
Development

No branches or pull requests

2 participants