sql-js / sql-js/sql.js

Invalid asm.js: Undefined global variable warning

Open
#244 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm using sql.js version 0.5.0 in a react.js application and I have a warning in my browser that points to sql.js line 7, saying:
Invalid asm.js: Undefined global variable

But since the code is minified I'm not able to see why.

Any ideas how I can get rid of that warning ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report points to sql.js line 7 in the minified browser bundle; start by reproducing the warning with sql.js 0.5.0 in a React.js application and inspecting that generated line. Done means identifying the undefined global reported by the browser and establishing a verified change or configuration that removes the warning without breaking the library.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite
Domain
databases, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.