I am trying to setup Bokehjs in a react app. On importing the bokehjs libraray in myApp.js I get an error. I am using node version(16.20.1) and npm version(8.19.4). Bokehjs library version is 2.4.3 Pasting code below for the App.js
import logo from './logo.svg';
import './App.css';
import { useEffect } from 'react';
import { embed } from '@bokeh/bokehjs/build/js/lib'
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;
Error Screenshot