Hi, I am using node:12 and importing bokehjs 2.0 into my js bundle. This gives me the following error:
zuifrontend_1 | Failed to compile.
zuifrontend_1 |
zuifrontend_1 | ./node_modules/@bokeh/bokehjs/build/js/lib/index.js 3:9
zuifrontend_1 | Module parse failed: Unexpected token (3:9)
zuifrontend_1 | File was processed with these loaders:
zuifrontend_1 | * ./node_modules/babel-loader/lib/index.js
zuifrontend_1 | You may need an additional loader to handle the result of these loaders.
zuifrontend_1 | | export { version } from "./version";
zuifrontend_1 | | export { index } from "./embed";
zuifrontend_1 | > export * as embed from "./embed";
zuifrontend_1 | | export * as protocol from "./protocol";
zuifrontend_1 | | export * as _testing from "./testing";
I should mention that the node setup was made using create-react-app with typescript template.
tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": ["src", "index.d.ts"]
}
Any idea how i can fix this?