cocopon / tweakpane

:control_knobs: Compact GUI for fine-tuning parameters and monitoring value changes
https://tweakpane.github.io/docs/
MIT License
3.69k stars 92 forks source link

Error: No matching view for {...} #629

Closed megagrump closed 1 month ago

megagrump commented 1 month ago
import { Pane, TextBladeApi } from 'tweakpane'
import * as EssentialsPlugin from '@tweakpane/plugin-essentials'

const pane = new Pane()
pane.registerPlugin(EssentialsPlugin)
pane.addBlade({
    view: 'text',
    label: 'test',
    parse: (v: any) => String(v),
    value: 'test',
})
Uncaught { message: `No matching view for '{"view":"text","label":"test","value":"test"}'`

This is basically the same as the example code. What am I missing?

megagrump commented 1 month ago

Nevermind, the moment I opened the issue I realized my own mistake elsewhere in the code.