Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[WASM] ViewModelInstance and StateMachine input methods fail with JavaScriptError #593

Copy link
Copy link
@Kyooz

Description

@Kyooz
Issue body actions

Environment

  • rive: 0.14.0
  • rive_native: 0.1.0
  • Flutter Web: flutter run -d chrome --wasm

When running Flutter Web with WASM r (--wasm flag), several Rive APIs fail with JavaScriptError:

ViewModelInstance methods crash:

_viewModelInstance.number(name)   // JavaScriptError
_viewModelInstance.string(name)   // JavaScriptError  
_viewModelInstance.boolean(name)  // JavaScriptError
_viewModelInstance.trigger(name)  // JavaScriptError
controller.stateMachine.inputs    // Returns empty list []
controller.stateMachine.inputAt(0) // Returns null immediately

The animation renders correctly, but we cannot programmatically read or modify ViewModel properties or StateMachine inputs.

Everything works as expected on (Chrome without --wasm, Windows, Android, iOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.