我点安装word_cloud2并仅运行以查看此错误
Compilation failed:
../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:351:13 - error TS2741: Property '0' is missing in type '(typeof Number | null)[]' but required in type '[PropertyConstructor<number>, (number | (() => number) | undefined)?]'.
351 gridSize:[p.Number, null],
~~~~~~~~
../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:314:9
314 gridSize:p.Property<number>
~~~~~~~~
The expected type comes from property 'gridSize' which is declared here on type 'Partial<DefineOf<Props>>'
../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:352:13 - error TS2741: Property '0' is missing in type '(typeof String | null)[]' but required in type '[PropertyConstructor<string>, (string | (() => string) | undefined)?]'.
352 fontFamily:[p.String, null],
~~~~~~~~~~
../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:315:9
315 fontFamily:p.Property<string>
~~~~~~~~~~
The expected type comes from property 'fontFamily' which is declared here on type 'Partial<DefineOf<Props>>```
自定义扩展代码仍然与该扩展所针对的Bokeh版本紧密相关。该活页夹示例使用1.2版,因此您需要使用该版本及其代码。