RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
794 stars 72 forks source link

Error with mysql2@3.1.2 #62

Closed bcerquiare closed 1 year ago

bcerquiare commented 1 year ago

I'm attempting to install a library, but I encountered an error related to the mysql2 version, which stated that the library only works with version 2.3.3. At present, mysql2 is on version 3.1.2.

RobinBlomberg commented 1 year ago

What's the error you encounter?

nlindroos commented 1 year ago

Currently "mysql2": "^2.3.3" is defined as a peer dependency. At least with npm@9.5.0 installing a 3.x version of mysql2 results in an ERESOLVE could not resolve error.

yousufiqbal commented 1 year ago

I can confirm this is happening. Changing mysql2 version to 2.3.3 fixes the problem.

RobinBlomberg commented 1 year ago

Should be fixed in kysely-codegen@0.10.1!