rive-app / rive-app/rive-react
Loading a file specifying an artboard doesn't work
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 58
- Avg merge
- 3h 23m
- Merged PRs (30d)
- 6
Description
I'm trying to load the attached file by passing an artobard to the new Rive call just like this:
const rive = new Rive({
artboard: "iPhone 16 - 2"
autoplay: true,
autoBind: true,
})
And I'm getting:
If I remove the artboard param, it works just fine but it loads the wrong artboard.
Here's the rive file:
untitled.riv.zip
I'm using the @rive-app/canvas library.
Any ideas?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Rive constructor snippet with the attached untitled.riv file and the @rive-app/canvas library. Trace how the artboard option is handled when creating a Rive instance, comparing it with the working case where artboard is omitted. Done means the named “iPhone 16 - 2” artboard loads successfully without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100