rive-app / rive-app/rive-react

Loading a file specifying an artboard doesn't work

Open
#368 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
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:
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.