-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cannot find module 'pg-native' #2165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
I "solved" adding three mock dependencies: package.json :
nano index.js :
nano package.json :
@brianc Is there a better way to solve this problem? |
I am running PG 11. So putting it in package.json will cause a crash? |
doesn't this cause a problem since it is required when the lib needs real access to the native lib like Brian is saying? |
I have seen this error many times when my app errs for some reason or another as long as there is data that has something to do with the knex or bookshelf module. Other modules in this case have nothing to do with this per se as the source for this library clearly requires pg-native, but doesn't declare it in its package.json anywhere. Here is stack trace and source where it is being required.
Stack trace:
Source referred to by top-most (throwing) line from this module:
The supposed eslint error and warning is disabled showing this maybe desired, but is causing errors upstream.
Here is the package.json dependency section for this module:
Can/should this be corrected in this module by adding pg-native in dependancies?
The text was updated successfully, but these errors were encountered: