Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Cannot read property 'ctx' of null #77

Open
atav32 opened this issue Oct 17, 2020 · 0 comments
Open

Cannot read property 'ctx' of null #77

atav32 opened this issue Oct 17, 2020 · 0 comments

Comments

@atav32
Copy link

atav32 commented Oct 17, 2020

Repro: https://codepen.io/atav32/pen/jOrPzPK?editors=1010

Trying to run the example code from the docs page:

var style = {
  color: "#000",
  font: "70px Helvetica",
  align: "center",
  border: "2px solid gold"
};

origami(".canvas")
  .text("Nice!", 100, 100, style)
  .text("Really Nice!", 150, 150, style);

origami.draw();

But seeing a stacktrace:

Uncaught TypeError: Cannot read property 'ctx' of null
    at Function.u.draw (origami.js:156)
    at pen.js:13

Using https://cdnjs.cloudflare.com/ajax/libs/origamijs/0.5.0/origami.min.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant