Skip to content

Instantly share code, notes, and snippets.

@fstiffo
Created September 2, 2017 08:27
Show Gist options
  • Save fstiffo/483d6c7c6a2dc58dc1e0514e744136ba to your computer and use it in GitHub Desktop.
Save fstiffo/483d6c7c6a2dc58dc1e0514e744136ba to your computer and use it in GitHub Desktop.
Runtime error
×
TypeError: xs is undefined
make/newrecord[9]
src/game.re:176
173 | var newrecord = component.slice();
174 | newrecord[/* render */9] = (function (self) {
175 | var history = self[/* state */3][/* history */0];
> 176 | var current = Caml_array.caml_array_get(history, self[/* state */3][/* stepNumber */2]);
177 | var winner = calculateWinner(current);
178 | var moves = $$Array.mapi((function (move, _) {
179 | var match = +(move > 0);
View compiled
▶ 22 stack frames were collapsed.
./src/index.re
src/index.re:10
7 |
8 | ((require('./index.css')));
9 |
> 10 | ReactDOMRe.renderToElementWithId(ReasonReact.element(/* None */0, /* None */0, Game.make(/* array */[])), "root");
11 |
12 | /* Not a pure module */
13 |
View compiled
▶ 6 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment