journeyapps / node-sqlcipher

SQLCipher bindings for Node
https://journeyapps.com
BSD 3-Clause "New" or "Revised" License
206 stars 66 forks source link

Unable to find dialect at @journeyapps/sqlcipher in Electron with worker-loader #84

Open osalinasv opened 3 years ago

osalinasv commented 3 years ago

Hello,

First of all, I'm aware this has previously been mentioned in #40. But I'm still getting the same issue and my setup is partially different.

This is the environment I'm trying to run:

The error output is basically the same as in #40:

Uncaught Error: Unable to find dialect at @journeyapps/sqlcipher
    at ConnectionManager._loadDialectModule (connection-manager.js:74)
    at new ConnectionManager (connection-manager.js:24)
    at new SqliteDialect (index.js:15)
    at new Sequelize (sequelize.js:340)
    at Module../src/renderer.worker.js (renderer.worker.js:11)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83
    at bootstrap:83

I've created this repository with a simplification of the environment that still reproduces the same issue: https://github.com/osalinasv/electron-worker-sequelize

Other modules, including native modules, seem to import fine inside the worker. This is the only one causing issues, any help would be greatly appreciated.

alisherafat01 commented 1 month ago

same problem. any solution?