Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

incompatibility issue with sequelize v6 ? #119

Closed
dberardo-com opened this issue Sep 5, 2023 · 4 comments
Closed

incompatibility issue with sequelize v6 ? #119

dberardo-com opened this issue Sep 5, 2023 · 4 comments

Comments

@dberardo-com
Copy link

i am getting this error: this.lib.Client is not a constructor when using pg-native with sequelize. more details here: sequelize/website#734

is this normal ?

@charmander
Copy link
Collaborator

This package is used via pg. Try pg.native (where pg = require('pg') or equivalent).

@charmander charmander closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2023
@dberardo-com
Copy link
Author

according to this table pg-native is supported by sequelize: https://sequelize.org/releases/

has that changed?

@charmander
Copy link
Collaborator

pg.native is how pg-native is exposed with a common API.

@dberardo-com
Copy link
Author

thanks a lot, now the error has changed:

Cannot read properties of undefined (reading 'on')

probably this is due to some join operation i am using in the query ? :-/

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

No branches or pull requests

2 participants