I’m in the process of moving a few custom components out of the main project so they can be pre-complied and to remove the dependency on node at runtime.
So far we got the components to compile running bokeh(2.3.0dev12), node(14.15.5) and npm(6.14.11) (thanks to @mateusz’s help) .
To get the files to compile I had to change the path of the packages ( seams related ) to :
and add to the .tsconfig :
As mentioned things compile correctly now. leading me to my next question as I’ve been following the documentation at :
(+ tweaks to get things to run and a lot of searches here and online)
there is no information as far as I can find on how to connect between the project and these output js files. As such, I tried to insert the direct js files to the python side these ways :
__implementation__ = "extentions.js" # or/and alert_box.js title = String() message = String() item_type = String()
i tried switching around the implementation line but in all attempts i keep getting “compiler errors” of paths not found such as:
RuntimeError: no such module: @bokehjs/core/properties
is there any more information on how to connect the dots between the compiled TS code and the project - we have no intention on distributing the components just trying to remove the step of compiling the components at runtime to remove the dependency on having node at run time.
Thanks (again) in advance!