Chiran Jeewantha
Chiran Jeewantha

Reputation: 23

error while running electron app main.ts with sqlite db connection

"pg-hstore" is imported by "pg-hstore?commonjs-external", but could not be resolved – treating it as an external dependency. ✓ 891 modules transformed. dist-electron/main.js 2,899.97 kB │ gzip: 456.42 kB built in 5124ms. App threw an error during load Error: Cannot find module 'pg-hstore' Require stack:

I'm trying to create sqlite db with sequelize umzug migrations by calling ipc event in main.js function createWindow(). then comes this errors .

Upvotes: 0

Views: 199

Answers (1)

Andrei C
Andrei C

Reputation: 812

Looks like you need to install the pg-hstore module.

npm install --save pg-hstore

Upvotes: 0

Related Questions