React-sketchapp: Can't run basic-setup example

Created on 7 Dec 2017  路  2Comments  路  Source: airbnb/react-sketchapp

_I am..._
| -------------------------------------------------------------------------------------------------
| Reporting a bug or issue
| -------------------------------------------------------------------------------------------------

Expected behavior:
Run basic-setup example successfully.

Observed behavior:
I get this error:
TypeError: MSAttributedString.alloc().initWithAttributedString is not a function. (In 'MSAttributedString.alloc().initWithAttributedString(attribStr)', 'MSAttributedString.alloc().initWithAttributedString' is undefined)
line: 2813
sourceURL: /Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js
column: 72
stack: makeAttributedString@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:2813:72
makeTextLayer@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:15026:66
renderBackingLayers@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:14977:44
flexToSketchJSON@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:6061:51
map@[native code]
flexToSketchJSON@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:6063:31
map@[native code]
flexToSketchJSON@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:6063:31
renderToSketch@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:4967:45
/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:7165:30
run@/Users/lincolnmitchel/Documents/react-sketchapp-1.0.0-beta.5/examples/basic-setup/basic-setup.sketchplugin/Contents/Sketch/my-command.js:18795:17
run@[native code]

How to reproduce:
Installed a clean version of react-sketch app and run Basic-Setup.

Versions:
SketchApp 48
skpm 1.0.10
npm 5.5.1
OS 10.12.6

Most helpful comment

Thx @dericgw. With Sketch 47 it works fine.

All 2 comments

@LincMitch It looks like there is an issue with this working with Skecth 48. You can download Sketch 47 here if you want to get up and going with it until a fix is applied.

Thx @dericgw. With Sketch 47 it works fine.

Was this page helpful?
0 / 5 - 0 ratings