Skip to content
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

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

Open
osalinasv opened this issue May 3, 2021 · 1 comment

Comments

@osalinasv
Copy link

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.

@alisherafat01
Copy link

same problem. any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants