Troubleshooting
Fix the most common problems with the editor.
The editor does not show
- Check that the Vite plugin is in your config and that you run
vite dev, or that your code imports the editor. - Check that the editor loads before the code that creates your animations.
- Press Cmd + ;, or call
showEditor()in the browser console, in case the editor is hidden.
An animation has no row
- Give the call a non-empty
id. - For a timeline call or sync, use the object form:
call({ id, callback }, position). - Check that your code and the editor use the same copy of
animejs, not one bundled in your code and another from the editor. - A standalone
createTimer()has no row. Add the timer to a timeline, with anid, instead.
A row is disabled
Two calls share the same id, or a timeline uses the same label name twice. The calls still play, but the editor cannot edit or save them. Give each one a unique name and reload. A disabled timeline also disables its children.
A call that runs again on the same targets, such as an animate() in a hover handler, or a timeline your code reverts and builds again, keeps one row. The row follows the last run.
SAVE is disabled
- The save server is not running. Start it with
npm run editor, or restart your Vite dev server. - The page uses
editor.config({ save: false }), which disables saving on purpose.
A save fails
The save bar lists the reason for each failed change. See Save errors.
The page shows the old animation after a save
A save writes your source files only. With Vite, the dev server then reloads the page. With another build tool, keep its watcher running so it rebuilds after each save, and reload once the build is done.
A value comes back after a reload
Unsaved edits stay in the browser tab and survive reloads. Save them, or press REVERT to return to the values in your code.
The editor loads twice
The error reads "Load the editor once", for example when the page loads both the free version and Editor Kit. With the Vite plugin, remove the editor import from your code, or import @animatorkit/editor only. Without Vite, keep one import.
Editor Kit does not load
The Status tab shows Editor Kit "Not installed", and the Editor Kit features stay locked. Editor Kit is not installed in your project, for example after a clone, or its install failed. Run npx @animatorkit/editor kit from the root of your project.
Editor Kit shows Inactive
The Status tab shows Editor Kit "Inactive", and the Editor Kit features are locked. Your license is no longer active, for example after a refund, or your key is in use on more machines than your license allows. The message in the Status tab gives the reason. Fix it from your account page, then reload the page.
The Three.js gizmo does not show
Check that the object is animated through the Three.js adapter, that editor.config({ three: { camera, renderer } }) uses the camera and renderer that draw it, and that the scene keeps rendering while the animation is paused. See Three.js scenes.