-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderToJson broken in 3.2.5 #519
Comments
Does |
Are you building with skpm? If so, what's the version? If it's not the latest, try updating. |
I tested in a fresh project with import { render, renderToJSON, Artboard, Text, View } from 'react-sketchapp';
console.log(renderToJSON(<Document colors={colorList} />)) Are you building with Babel before building/rendering with skpm? Might want to mark |
@mathieudutour @macintoshhelper My sketch crashed when I run a new project with template or run examples in react-sketchapp, so may be related to my local environment. I will test in other computer and try update skpm in my project later. And I wonder if there is any doc about skpm entry point configuration? thanks! |
Expected behavior:
Observed behavior: when I update the version from 3.1.2 to 3.2.5 , report error "undefined is not an object (evaluating 'bridge.createStringMeasurer') "
How to reproduce:
Sketch version: 66
But it work when i change the import:
May be related to this pr #517
The text was updated successfully, but these errors were encountered: