How to fix this issue using sequelize and electron with vite?

211 Views Asked by At

I have created a fresh electron-vite on vue-ts setup from this source https://electron-vite.org/ and installed sequelize. now i am having an error attached here:

error on npm run dev from the package

Here's my current code from main.ts

main ts file adding sequelize

Here's the code form the getdb.ts getdb1 getdb2

how can i fix this with vite config ?. much appreciated for the help in advance

0

There are 0 best solutions below