designer ยท console.warn
designer addPanel: there is no page with a s...
Printed by designer, prefixed [lattice], since 1.89.0.
Warnings reference › designer:addPanel
- Identifier
designer:addPanel- Raised by
- designer
- Since
- 1.89.0
What happened
The addPanel command adds a widget to the selected page's spec. The state has no selected page, or its spec is not an object, so nothing was added and null was returned.
The fix
Select a page whose spec is an object first.
The smallest fix
designer.commands.run(addPanel, { kind: html });
Reference
Covered in full at the API reference.