Hi
I maintain the awesome-panel-extensions
which is a a collection of Panel/ Bokeh extensions. I would like to upgrade them to Panel 0.11/ Bokeh 2.3.0.
I see one thing to update. I need to change from
import {bk_input_group} from "@bokehjs/styles/widgets/inputs"
to
import * as inputs from "@bokehjs/styles/widgets/inputs.css"
But when I run
panel build awesome_panel_extensions
it fails
$ panel build awesome_panel_extensions
Working directory: C:\repos\private\panel-extensions-template\awesome_panel_extensions
Using C:\repos\private\panel-extensions-template\awesome_panel_extensions\tsconfig.json
Compiling styles
Compiling TypeScript (14 files)
awesome_panel_extensions/bokeh_extensions/fast/fast_checkbox_group.ts:4:25 - error TS7016: Could not find a declaration file for module '@bokehjs/styles/widgets/inputs.css'. 'C:/repos/private/panel-extensions-template/awesome_panel_extensions/node_modules/@bokeh/bokehjs/build/js/lib/styles/widgets/inputs.css.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/bokeh__bokehjs` if it exists or add a new declaration (.d.ts) file containing `declare module '@bokehjs/styles/widgets/inputs.css';`
4 import * as inputs from "@bokehjs/styles/widgets/inputs.css"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
awesome_panel_extensions/bokeh_extensions/fast/fast_switch_group.ts:4:25 - error TS7016: Could not find a declaration file for module '@bokehjs/styles/widgets/inputs.css'. 'C:/repos/private/panel-extensions-template/awesome_panel_extensions/node_modules/@bokeh/bokehjs/build/js/lib/styles/widgets/inputs.css.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/bokeh__bokehjs` if it exists or add a new declaration (.d.ts) file containing `declare module '@bokehjs/styles/widgets/inputs.css';`
4 import * as inputs from "@bokehjs/styles/widgets/inputs.css"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Linking modules
Output written to C:\repos\private\panel-extensions-template\awesome_panel_extensions\dist
All done.
HOW DO I SOLVE THIS?.
FYI. @mateusz
I believe @Philipp_Rudiger has already solved the issue for Panel as he has done the change here