React-sketchapp: TypeError: null is not an object (evaluating 'context.document.currentPage')

Created on 27 Apr 2017  路  5Comments  路  Source: airbnb/react-sketchapp

i run npm install ,and then run npm run render,but throw this error

npm 4.5.0
node 7.8.0
sketch 0.43.2

npm run render

> profile-cards@ render /Users/yutou/code/react-sketchapp/examples/profile-cards
> skpm build --watch --run

馃枿  Copied src/manifest.json in 9ms
Executing post-build scripts
馃敥  Built ./main.js in 1451ms
TypeError: null is not an object (evaluating 'context.document.currentPage')
line: 6740
column: 104

Most helpful comment

first open a document!!!

All 5 comments

first open a document!!!

This is such a common bug, really sorry we didn't make it clear enough

Haha, yeah, this just happened to me too. Maybe an error message saying, "Did you open a document dummy?" :)

Or to be completely clear, maybe... "Hey dummy! Did you open a new document in Sketch?"

It's funny.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tafelito picture tafelito  路  4Comments

apexskier picture apexskier  路  3Comments

kirill-konshin picture kirill-konshin  路  7Comments

sherry255 picture sherry255  路  3Comments

0x77dev picture 0x77dev  路  5Comments