rive-app / rive-app/rive-react

useRive is undefined error

Open
#325 1 comment 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 am not able to utilize the useRive hook because the index.js file of @rive-app/react-canvas keeps getting minified to 0, and the file has this line at the top which doesn't let me export 0 values: Object.defineProperty(exports,"__esModule",{value:!0});

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 inspecting the index.js file in @rive-app/react-canvas and reproducing the useRive import failure described in the issue. Check how that package is built and minified, then verify that useRive can be imported and that the published index.js retains its exports.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.