You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have started a new project with yarn v4 and sequelize, and I can't connect with postgres.
Error: Please install postgres-array package manually
Error: @sequelize/core tried to access postgres-array, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
What do you expect to happen?
postgres-array is installed, it should find it (I installed pg which brings it through pg-types).
What is actually happening?
/project-path/.yarn/__virtual__/@sequelize-core-virtual-22c149e4d2/4/.yarn/berry/cache/@sequelize-core-npm-7.0.0-alpha.33-3306c2ef8d-10c0.zip/node_modules/@sequelize/core/src/dialects/abstract/connection-manager.ts:140
throw new Error(`Please install ${moduleName} package manually`);
^
Error: Please install postgres-array package manually
at PostgresConnectionManager._loadDialectModule (/project-path/.yarn/__virtual__/@sequelize-core-virtual-22c149e4d2/4/.yarn/berry/cache/@sequelize-core-npm-7.0.0-alpha.33-3306c2ef8d-10c0.zip/node_modules/@sequelize/core/src/dialects/abstract/connection-manager.ts:140:15)
at new PostgresConnectionManager (/project-path/.yarn/__virtual__/@sequelize-core-virtual-22c149e4d2/4/.yarn/berry/cache/@sequelize-core-npm-7.0.0-alpha.33-3306c2ef8d-10c0.zip/node_modules/@sequelize/core/src/dialects/postgres/connection-manager.ts:67:33)
at new PostgresDialect (/project-path/.yarn/__virtual__/@sequelize-core-virtual-22c149e4d2/4/.yarn/berry/cache/@sequelize-core-npm-7.0.0-alpha.33-3306c2ef8d-10c0.zip/node_modules/@sequelize/core/src/dialects/postgres/index.ts:103:30)
at new Sequelize (/project-path/.yarn/__virtual__/@sequelize-core-virtual-22c149e4d2/4/.yarn/berry/cache/@sequelize-core-npm-7.0.0-alpha.33-3306c2ef8d-10c0.zip/node_modules/@sequelize/core/src/sequelize.js:416:20)
at getSequelizeInstance (/project-path/api/core/sequelize.ts:36:10)
at connect (/project-path/api/core/sequelize.ts:16:23)
at getModels (/project-path/api/models/index.ts:13:60)
at Object.<anonymous> (/project-path/api/bin/worker.ts:17:33)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module.m._compile (/project-path/.yarn/__virtual__/ts-node-virtual-1c21828d8d/4/.yarn/berry/cache/ts-node-npm-10.9.2-3f3890b9ac-10c0.zip/node_modules/ts-node/src/index.ts:1618:23)
No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in resolving my issue.
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered:
Issue Creation Checklist
Bug Description
I have started a new project with yarn v4 and sequelize, and I can't connect with postgres.
What do you expect to happen?
postgres-array is installed, it should find it (I installed pg which brings it through pg-types).
What is actually happening?
Environment
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: