This may not be the solution for your issue.
However, in my case I found that the issue was to do with an incompatible sql.js
version that had been updated.
I found that versioning sql.js in my package.json to ~1.12.0 resolved this issue for me.
"sql.js": "~1.12.0",