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

Created on 28 Apr 2017  路  3Comments  路  Source: airbnb/react-sketchapp

馃憢 Hello! Thanks for contributing. Please use the template that matches your intention

I am running npm run render inside one of the examples folder. Every time I get an error in terminal.
image

Expected behavior:
I expected the command to run successfully creating a new plug-in.

Observed behavior:
I get this info:

npm run render

> profile-cards@ render /Users/sten/Documents/DEV/NODE/react-sketchapp/examples/profile-cards
> skpm build --watch --run

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

How to reproduce:

  1. Enter one of the example folder
  2. Run install and: npm run render

Sketch version:
43.2 (39069)

Most helpful comment

@netsi1964 You should already have an empty Sketch project open before running npm run render.

All 3 comments

@netsi1964 You should already have an empty Sketch project open before running npm run render.

Please state that in the instructions when someone wants to test it. And yes - that helped! Here is screenshot where I have altered the Profile Cards example. Great!
image

@netsi1964 sorry you ran into that - I need to make the docs clearer :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csantiago132 picture csantiago132  路  6Comments

jaridmargolin picture jaridmargolin  路  6Comments

thierryc picture thierryc  路  5Comments

ziggygou picture ziggygou  路  6Comments

0x77dev picture 0x77dev  路  5Comments