Following the tutorial at: Extending Bokeh — Bokeh 2.4.2 Documentation
I have the three files made as in the example (custom.ts, custom.py, and main.py). However when I run I get the error message below:
Compilation failed:
custom.ts:13:29 - error TS2339: Property ‘slider’ does not exist on type ‘HTMLBox’.
13 this.connect(this.model.slider.change, () => {
custom.ts:32:22 - error TS2339: Property ‘text’ does not exist on type ‘HTMLBox’.
32 }, ${this.model.text}: ${this.model.slider.value}))
custom.ts:32:42 - error TS2339: Property ‘slider’ does not exist on type ‘HTMLBox’.
32 }, ${this.model.text}: ${this.model.slider.value}))
custom.ts:53:17 - error TS2702: ‘Custom’ only refers to a type, but is being used as a namespace here.
53 this.define<Custom.Props>({
I assume the first three errors about “slider” and “text” are irrelevant and the important part is how “Custom” is being used as a namespace. However, it works according to the example in the url I posted above as well as a couple others. Googling for “error TS2702” brings up some esoteric similarities, but I ultimately can’t figure this out. Can anyone shed light into what could be going on here?