airbnb / airbnb/react-sketchapp
SVG rendering broken in Sketch 85.1
- Dominant language
- TypeScript
- Stars
- 14.9k
- Forks
- 797
- PR merge metrics
- No merged PRs in 30d
Description
_I am..._
| -------------------------------------------------------------------------------------------------
| Reporting a bug or issue
| -------------------------------------------------------------------------------------------------
**Expected behavior:**
Should render an SVG
**Observed behavior:**
```sh
TypeError: svgImporter.graph().width is not a function. (In 'svgImporter.graph().width()', 'svgImporter.graph().width' is undefined)
```

**How to reproduce:**
```sh
curl https://codeload.github.com/airbnb/react-sketchapp/tar.gz/master | tar -xz --strip=2 react-sketchapp-master/examples/basic-svg
cd basic-svg
```
**Sketch version:**
85.1
**Please attach screenshots, a zip file of your project, and/or a link to your github project**
https://github.com/airbnb/react-sketchapp/tree/master/examples/basic-svg
Contributor guide
Research direction
Start with the examples/basic-svg reproduction and trace the failing svgImporter.graph().width() call shown in the report. Verify the result in Sketch 85.1: the example should render its SVG without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100