rive-wasm runtime: "bytecode version mismatch (expected [3..6], got 7)" with scripted .riv files
Hi all,
Running into a Luau bytecode version mismatch when loading a scripted `.riv` file with the web runtime. The editor exports the file with Luau bytecode v7, but the runtime expects 3..6 and rejects it.
Environment
- Package: @rive-app/webgl2-advanced@2.37.5 (latest on npm, verified — no newer version is published)
- Browser: Version 140.0.7339.80 (Official Build) (64-bit)
Error
bytecode version mismatch (expected [3..6], got 7)
What's happening
Loading any .riv file that contains scripts immediately fails with the error above. Seems like Rive editor (or its embedded Luau compiler) is producing v7 bytecode, but the Luau version shipped inside the wasm runtime doesn't know v7 yet.
Looking at rive-android releases, I see recent chore: bump to luau 0.703 and chore: bump to luau 0.711 commits alongside a feature: bytecode header format change — so it looks like the web runtime is just lagging behind the mobile runtimes on the Luau bump.
The same likely affects the sibling packages on npm (@rive-app/webgl2-advanced, @rive-app/canvas-advanced, etc.), since they're all on similar versions and share the same wasm core.
Questions
1. Is there a known workaround other than removing scripts from the file before export?
2. Is there an editor-side option to export with an older Luau bytecode version for compatibility?
3. Any rough ETA on a Luau bump for the wasm/web runtime packages?
Thanks in advance!