Can't resolve 'pg-hstore'

See original GitHub issue

May be necessary need move ‘pg-hstore’ with devDependencies in dependencies?

ERROR in ./~/sequelize/lib/dialects/postgres/hstore.js
Module not found: Error: Can't resolve 'pg-hstore' in 'node_modules/sequelize/lib/dialects/postgres'
 @ ./~/sequelize/lib/dialects/postgres/hstore.js 3:15-35
 @ ./~/sequelize/lib/dialects/postgres/data-types.js
 @ ./~/sequelize/lib/data-types.js
 @ ./~/sequelize/lib/sequelize.js
 @ ./~/sequelize/index.js

Dialect: any Sequelize version: 4.0.0-2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:24
  • Comments:32 (6 by maintainers)

github_iconTop GitHub Comments

98reactions
rozzzlycommented, Jun 19, 2017

This needs to be reopened, This is an issue with how sequelize conditionally requires its dependencies. If I can’t just yarn add sequelize and have it work then it’s a problem on your end. I’m using mysql, not postgress so ideally the code that attempts require('pg-hstore') should never had ran. I didn’t use to have this issue so its due to a regression.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sequelize.js can't find pg dependency when using webpack
After running the app I get the following error: "Error: The dialect postgres is not supported. (Error: Please install 'pg' module manually)". Both...
Read more >
pg-hstore - npm
A module for serializing and deserializing JSON data into hstore format. Latest version: 2.3.4, last published: 2 years ago.
Read more >
Developers - Can't resolve 'pg-hstore' - - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >
sequelize.js can't find pg dependency when using webpack ...
Coding example for the question sequelize.js can't find pg dependency when using webpack-sequelize.js. ... Can't resolve pg-hstore; Webpack externals.
Read more >
Getting webstorm to run with sequelize or recognising ...
On running I hit a Fail To Compile issue: "Module not found: Can't resolve 'pg-hstore'..." I don't need that dependency since i'm not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found