node-sqlcipher icon indicating copy to clipboard operation
node-sqlcipher copied to clipboard

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

Open osalinasv opened this issue 4 years ago • 1 comments

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:

  • OS: macOS 11.2.3
  • Node: 15.11.0
  • Electron: 12.0.5
  • Webpack: 4.46.0
  • worker-loader: 3.0.8
  • Sequelize: 6.6.2
  • @journeyapps/sqlcipher: 5.2.0

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.

osalinasv avatar May 03 '21 14:05 osalinasv

same problem. any solution?

alisherafat01 avatar Jul 22 '24 10:07 alisherafat01