Unhandled rejection Error: Cannot find module 'pg-native'
See original GitHub issueWhen I try to use hash properties , it throws an error
Unhandled rejection Error: Cannot find module ‘pg-native’
db('test').where({'id' : 1, 'name' : 'blabla'})
.first('*').then(function(value){ console.log(value) });
When I change it like below, it works. Whats the problem ?
db('test').where('id', 1)
.andWhere('name', 'blabla')
.first('*').then(function(value){ console.log(value) });
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (13 by maintainers)
Top Results From Across the Web
Error: Cannot find module 'pg-native' · Issue #3781 - GitHub
Exception occurs when trying to add two (or more) equal values in a unique field using findOrCreate. Test code: var arr = [0,...
Read more >Jest Cannot find module 'pg-native' from 'client.js'
My project consists of node (express), knex, objectionjs with graphql. We are using Jest to test calls to graphql which behind the scenes...
Read more >pg-native - npm
High performance native bindings between node.js and PostgreSQL via libpq with a simple API. install. You need PostgreSQL client libraries & ...
Read more >Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/ module...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
To fix the error, you need to install the package that is absent in your project directory – npm install package-name or yarn...
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
No results found
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
I made some more research and my issue were not related to this library. Sorry for opening this thread for nothing.
it will be released later today. What does 0.11.3 say? Actually changes in 0.11.4 is just to fix how that behave inside transaction so 0.11.3 could work too.