He creado una aplicación de reacción simplemente usando la plantilla de reacción redux npx create-react-app my-app --template redux . Ahora, después npm install @bokeh/bokehjs e import * as Bokeh from "@bokeh/bokehjs"; . Aparece un montón de errores:
WARNING in ./node_modules/@bokeh/bokehjs/build/js/lib/testing.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from 'C:\Users\s1023\OneDrive - Desktop\my-app\app\app\node_modules\@bokeh\bokehjs\build\js\lib\testing.js.map' file: Error: ENOENT: no such file or directory, open 'C:\Users\s023\OneDrive - Desktop\my-app\app\app\node_modules\@bokeh\bokehjs\build\js\lib\testing.js.map' WARNING in [eslint] src\features\heatmapSlice\heatmap.jsx Line 1:13: 'Bokeh' is defined but never used no-unused-vars webpack compiled with 437 warnings No comencé a hacer nada, simplemente creé la plantilla de reacción e import * as Bokeh from "@bokeh/bokehjs"; . Necesito renderizar el diagrama de bokeh en mi aplicación de reacción, ¿alguien sabe qué está pasando con la importación de bokehjs? Estoy usando "@bokeh/bokehjs": "^2.4.3" .