Problem code 'unknown-event' ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts, tables/problems.json and services/onsite-scripter/scripts/contract-docs-what-to-do.json by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

A member of ProblemCode · stable · since 2.0.0

on() got an event name that doesn't exist; it subscribed to nothing.

What to do ​

The Problem's didYouMean names the event meant: a removed 1.x name's 2.0 event first ('scene:synced' is 'scene-model:changed', 'material:changed' is 'material:selected', 'scene:settled' and 'history:restored' are 'committed'), then close names. Use a key of Events: 'committed' (every commit), 'scene-model:changed' (the model, with model), 'material:selected', 'history:changed', 'assembly:changed', 'click', 'hover', 'drag:start', 'drag:move', 'drag:end', 'camera:changed', 'camera:rest', 'camera:control-start', 'camera:control-end', 'hotspot:click', 'hotspot:hover', 'anchors:moved', 'animation:started', 'animation:stopped', 'animation:finished', 'ar:status', 'ar:modes', 'resize', 'document:applied', 'problem', and the labs 'xr:start', 'xr:end' and 'xr:cta' (Holostep's in-page AR or try-on). Events is the full list.

ts
session.on('scene-model:changed', ({ model }) => renderSummary(model), { signal });

Where the declaration names it ​

The set is open: handle a code you don't know ('other').