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

Type error during build #1866

Closed
krzar opened this issue Mar 1, 2023 · 2 comments
Closed

Type error during build #1866

krzar opened this issue Mar 1, 2023 · 2 comments

Comments

@krzar
Copy link

krzar commented Mar 1, 2023

While building my project I get an error:

node_modules/mysql2/index.d.ts:86:18 - error TS2320: Interface 'PoolConnection' cannot simultaneously extend types 'PoolConnection' and 'Connection'.
  Named property 'execute' of types 'PoolConnection' and 'Connection' are not identical.

86 export interface PoolConnection extends mysql.PoolConnection, Connection {
                    ~~~~~~~~~~~~~~

node_modules/mysql2/index.d.ts:86:18 - error TS2320: Interface 'PoolConnection' cannot simultaneously extend types 'PoolConnection' and 'Connection'.
  Named property 'unprepare' of types 'PoolConnection' and 'Connection' are not identical.

86 export interface PoolConnection extends mysql.PoolConnection, Connection {

The version of mysql2 I am using is 3.1.2, I can build the project using --skipLibCheck but I would prefer to avoid it.

@wellwelwel

This comment was marked as resolved.

@wellwelwel
Copy link
Collaborator

Hi @krzar, we currently have a TypeScript Build Test since the #1957 was merged.

Also, this issue has been fixed in version ^3.2.2 in PR #1955.


I'm closing this Issue, but feel free to ask anything 🙋🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants