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: workspace dependency "@auth/core" not found with latest beta version #10073

Closed
arvinxx opened this issue Feb 19, 2024 · 10 comments
Closed
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@arvinxx
Copy link
Contributor

arvinxx commented Feb 19, 2024

Environment

next-auth: beta

Reproduction URL

https://github.com/lobehub/lobe-chat

Describe the issue

try with bun:

image

but failed with workspace dependency "@auth/core" not found

How to reproduce

git clone https://github.com/lobehub/lobe-chat

bun i

Expected behavior

install deps suceessful

@arvinxx arvinxx added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Feb 19, 2024
@MrOxMasTer
Copy link

It's about the same problem, but I can't even install it.
image

@TimKieu
Copy link

TimKieu commented Feb 19, 2024

I am happy to know who can show off the v5 release roadmap please.
thanks much

@95tuanle
Copy link

I'm having the same issue with bun and npm, temp fix to lock it at "next-auth": "5.0.0-beta.11"

@arvinxx
Copy link
Contributor Author

arvinxx commented Feb 20, 2024

The cause I think is dependency wrong

https://www.npmjs.com/package/next-auth/v/5.0.0-beta.12?activeTab=code

78  "license": "ISC",
79  "dependencies": {
80    "@auth/core": "workspace:*"
81  }

@KeizerBong
Copy link

Installing of 5.0.0-beta.11 solves the issue. Seem like this is the root cause of it

The cause I think is dependency wrong

https://www.npmjs.com/package/next-auth/v/5.0.0-beta.12?activeTab=code

78  "license": "ISC",
79  "dependencies": {
80    "@auth/core": "workspace:*"
81  }

@mches
Copy link

mches commented Feb 20, 2024

The cause I think is dependency wrong

https://www.npmjs.com/package/next-auth/v/5.0.0-beta.12?activeTab=code

78  "license": "ISC",
79  "dependencies": {
80    "@auth/core": "workspace:*"
81  }

I think you're right. Here is a targeted workaround, for pnpm, that allowed me to update to 5.0.0-beta.12:

package.json:

{
  "pnpm": {
    "overrides": {
      "next-auth@5.0.0-beta.12>@auth/core@workspace:*": "0.27.0"
    }
  }
}

The following may work for npm:

{
  "overrides": {
    "next-auth@5.0.0-beta.12": {
      "@auth/core": "0.27.0"
    }
  }
}

and the following may be the best one can do for bun:

{
  "overrides": {
    "@auth/core": "0.27.0"
  }
}

@Itsnotaka
Copy link
Contributor

Add this to package.json if you are using pnpm.

pnpm": {
    "overrides": {
      "@auth/core": "0.27.0"
    }
  }

@InsafNilam
Copy link

InsafNilam commented Feb 20, 2024

Remove the existing node_module -> next_auth package using the command below
npm uninstall next-auth

Add the code below in your package.json

{ "overrides": { "next-auth@5.0.0-beta.12": { "@auth/core": "0.27.0" } } }

Save your package.json file and then install the module using the below command
npm i next-auth@5.0.0-beta.12

This worked for me
Capture
Capture-1

@ThangHuuVu
Copy link
Member

Sorry for the trouble, I fixed it in https://www.npmjs.com/package/next-auth/v/5.0.0-beta.13?activeTab=code

@95tuanle
Copy link

Sorry for the trouble, I fixed it in https://www.npmjs.com/package/next-auth/v/5.0.0-beta.13?activeTab=code

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

9 participants