adonisjs / auth

Official Authentication package for AdonisJS
https://docs.adonisjs.com/guides/auth/introduction
MIT License
187 stars 65 forks source link

Latest version of Lucid (20) cannot be installed with `auth` #231

Closed targos closed 6 months ago

targos commented 6 months ago

Package version

9.1.0

Describe the bug

Trying to install the latest versions of @adonisjs/auth and @adonisjs/lucid ends up in an error because of the peer dependency requirement:

$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @adonisjs/auth@9.1.0
npm ERR! Found: @adonisjs/lucid@20.0.0
npm ERR! node_modules/@adonisjs/lucid
npm ERR!   @adonisjs/lucid@"^20.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @adonisjs/lucid@"^19.0.0" from @adonisjs/auth@9.1.0
npm ERR! node_modules/@adonisjs/auth
npm ERR!   @adonisjs/auth@"^9.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @adonisjs/lucid@19.0.0
npm ERR! node_modules/@adonisjs/lucid
npm ERR!   peerOptional @adonisjs/lucid@"^19.0.0" from @adonisjs/auth@9.1.0
npm ERR!   node_modules/@adonisjs/auth
npm ERR!     @adonisjs/auth@"^9.1.0" from the root project

Reproduction repo

No response

thetutlage commented 6 months ago

Fixed in https://github.com/adonisjs/auth/releases/tag/v9.1.1