dwyl / hapi-postgres-connection

:zap: Creates a PostgreSQL Connection (Pool) available anywhere in your Hapi App
GNU General Public License v2.0
40 stars 13 forks source link

Problem with webpack. #26

Closed Kuchiriel closed 7 years ago

Kuchiriel commented 7 years ago
→ yarn build                                                          [1f9df66]
yarn build v0.24.6
$ cross-env NODE_ENV=production babel-node build/build.js --presets env 
Build completed in 27.728s

Hash: 683b7b910706c248077e
Version: webpack 3.0.0
Time: 27719ms
  Asset     Size  Chunks  Chunk Names
zion.js  1.07 MB       0  app

ERROR in ./node_modules/pg/lib/native/index.js
Module not found: Error: Can't resolve 'pg-native' in '/home/trevor/Projects/Zion ERP/backend/node_modules/pg/lib/native'
 @ ./node_modules/pg/lib/native/index.js 9:13-33
 @ ./node_modules/pg/lib/index.js
 @ ./node_modules/hapi-postgres-connection/index.js
 @ ./src/plugins.js
 @ ./src/server.js
 @ ./src/zion.js
 @ multi ./zion.js

Done in 31.56s.
Kuchiriel commented 7 years ago

Solved with: https://github.com/elastic-coders/serverless-webpack/issues/78