Electron and sequelize error: the dialect sqlite is not supported

后端 未结 4 616
情歌与酒
情歌与酒 2021-02-06 03:31

I\'m trying to use sequelize and sqlite with electron in a desktop application but get the following error when running the app via npm start (which runs node

4条回答
  •  有刺的猬
    2021-02-06 04:20

    If you can run $npm list sqlite3 and you get a response like...

    MyAppName@0.0.1 /path/to/MyApp └── sqlite3@3.0.10

    Then the problem is likely that sqlite3 doesn't work in Electron (without some coercing) and Sequelize doesn't know how to express the error.

    See this blog post to get sqlite3 working in Electron. This should fix your issue with Sequelize.

提交回复
热议问题