Skip to content

Scripting not working on runtime #423

@nikkieke

Description

@nikkieke

Submission checklist

  • I have confirmed the issue is present in the latest version of @rive-app/react-canvas or @rive-app/react-webgl2 (or the renderer variant I'm using)
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate

Description

I am loading a .riv file whose rendering and animation is entirely handled by a Luau script and it results in a blank artboard. The script does not appear to execute on runtime. It works as expected in the rive editor.

The following appear in the browser console:

[activate] script "Globe" generatorFunctionRef=13 -> lua ref=13
[verifyImpl] entering verify for object protocol=1, stack top type=7

Environment:
Package: @rive-app/react-webgl2 (latest version)
Framework: Next.js 15 / React 19
Browser: Chrome (latest)

Expected: The Luau script named "Globe" executes and renders the animation.
Actual: Artboard is blank. The [activate] log suggests the runtime is attempting to initialize the script.

Reproduction steps / code

No response

Upload your reproduction files / stack trace

No response

Rive React package version

"@rive-app/react-webgl2": "^4.28.4"

Source .riv / .rev file

No response

Screenshots / video

No response

Browser & version

No response

Operating system & version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions