Expected behavior:
Following the basic example instructions works
Observed behavior:
When I run the render task, Sketch opens, but the following error
TypeError: null is not an object (evaluating 'context.document.currentPage')
line: 9246
column: 114
How to reproduce:
cameronlittle@Chelan:~/Dev
$ curl https://codeload.github.com/airbnb/react-sketchapp/tar.gz/master | tar -xz --strip=2 react-sketchapp-master/examples/basic-setup
cameronlittle@Chelan:~/Dev
$ cd basic-setup
cameronlittle@Chelan:~/Dev/basic-setup
$ npm install
# for brevity, I've removed this output, since it's all normal
cameronlittle@Chelan:~/Dev/basic-setup
$ npm run render
> [email protected] render /Users/cameronlittle/Dev/basic-setup
> skpm build --watch --run
馃枿 Copied src/manifest.json in 6ms
Executing post-build scripts
馃洜 Built ./my-command.js in 1391ms
TypeError: null is not an object (evaluating 'context.document.currentPage')
line: 9246
column: 114
Version information:
Sketch: 43.1
node: v7.2.1
npm: 3.10.10
os: macOS Sierra 10.12.3 (16D32)
This should be way clearer, sorry - you need to have a new Sketch document open when you call render.
We've asked the Sketch devs to help us out on this but haven't got a timeline thus far :(
Great, thanks for the info!
Will it be better to verbose an info indicating the user a new sketch doc is required ?
Most helpful comment
This should be way clearer, sorry - you need to have a new Sketch document open when you call render.
We've asked the Sketch devs to help us out on this but haven't got a timeline thus far :(