You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not find a declaration file for module '@bokeh/bokehjs'. '/path/to/project/node_modules/@bokeh/bokehjs/build/js/lib/bokeh.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 '@bokeh/bokehjs';`
```
### Example code
```typescript
import * as Bokeh from '@bokeh/bokehjs';
```
### Stack traceback or browser console output
_No response_
### Screenshots
_No response_
The text was updated successfully, but these errors were encountered:
BobbyL2k
changed the title
[BUG] NPM package has types (*.d.ts) at the incorrect location
[BUG] NPM package has types (*.d.ts) in incorrect location
May 8, 2024
Software versions
BokehJS version: broken since 3.1.0 to current version 3.4.1
Browser name and version
Jupyter notebook / Jupyter Lab version
Expected behavior
Import Bokeh in TypeScript should work when installing
npm install @bokeh/bokehjs
TypeScript should not complain about type information being missing.
node_modules/@bokeh/bokehjs/package.json
expect types information underbuild/js/types
(seebokeh/bokehjs/package.json
Line 41 in cf19b57
However the pre-compiled files under build/js do not match this layout.
Types are located under
build/js/lib
instead ofbuild/js/types
.This is easily verifiable by going to NPM package registry and see how there is no
types
directoryhttps://www.npmjs.com/package/@bokeh/bokehjs?activeTab=code
Observed behavior
The text was updated successfully, but these errors were encountered: