question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled rejection Error: Cannot find module 'pg-native'

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
tahv0commented, Mar 29, 2019

Getting this message with knex 0.15.2

@tahv0 please provide also some code for reproduction if you think that is a bug.

I made some more research and my issue were not related to this library. Sorry for opening this thread for nothing.

1reaction
elhigucommented, May 22, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

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 Reddit Thread

No results found

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