You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems strange. Does it have compilation phase to see what kind on js is generated from that type script. And try to debug what kind of object is passed to createTable callback function (console.dir(table)).
@elhigu thanks for the reply !
I took the same code from main.ts(vue entry, also electron render) to main.js(electron main), and changed some ts syntax to js(eg: (table: any) => {} --> (table) => {}). It works! So i think the problem is about electron render, because i use electron.remote.require to require knex in main.ts.
Before knex, i used sequelize^4.39.0 by electron.remote.require in main.ts, and it worked. Now i delete all code about sequelize, but there is a problem in knex.
Moreover, Does it relate to webpack ? The webpack config is default by vue-cli, i juse change :
Environment
Knex version: ^0.15.2
Database + version: sqlite3^4.0.2
OS: Windows 10, electron^3.0.0
Bug
i'm using vue-cli3 to create an app, and using electron to run the app. following knex examples:
then, i got an error:
it looks like the sql create table statement is empty, so i log the sql with
.toSQL()
:and it shows:
i have searched the issues, but got nothing :(
and forgive my poor english :)
The text was updated successfully, but these errors were encountered: