rive-app / rive-app/rive-react

Bad Header, Problem loading file; may be corrupted!

Open
#140 10 comments 3 reactions 0 assignees View on GitHub

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 create Spinner component using .riv file, when I add src as local file or via CDN when I render the component in consumer application it fails with following errors.

It renders correctly in component library as expected but error occurs when it's rendered in consuming react application.

Screen Shot 2022-12-12 at 11 49 25 AM

Following are the sources where it shows error in the browser.

Screen Shot 2022-12-12 at 11 49 43 AM Screen Shot 2022-12-12 at 11 50 10 AM

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 Spinner component in a consuming React application with a local or CDN .riv source, then inspect the browser errors shown in the issue. Done means the same component renders successfully outside the component library without the bad-header or corrupted-file errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.