Can't resolve 'pg-hstore'
See original GitHub issueMay 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:
- Created 6 years ago
- Reactions:24
- Comments:32 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This needs to be reopened, This is an issue with how
sequelize
conditionallyrequire
s its dependencies. If I can’t justyarn add sequelize
and have it work then it’s a problem on your end. I’m usingmysql
, notpostgress
so ideally the code that attemptsrequire('pg-hstore')
should never had ran. I didn’t use to have this issue so its due to a regression.https://github.com/sequelize/sequelize/search?q=webpack&type=Issues&utf8=✓