The following patch is generated from patch-package. Apply the patch by patch-package or manually. BTW, patch-package is amazing!
The patch is basically remove require('pg-hstore')
because we don't need it and it may cause a require error.
You can also notice that we use window.SQL
this thing. That means we need window.SQL
be present.
My way is initSqlJs
and set it to window.SQL
somewhere at the very beginning (before you call sequelize).