@lightningjs/ui showing typescript error

I was trying to import the ui components to my LightningJS - Typescript project and I’ve got the following error.


.
.

Could not find a declaration file for module '@lightningjs/ui'. '/Users/amalmohann/Documents/codebase/web-tv/lightning/lightning-poc/node_modules/@lightningjs/ui/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/lightningjs__ui` if it exists or add a new declaration (.d.ts) file containing `declare module '@lightningjs/ui';`ts(7016)

.
.
I’ve tried to run

npm i --save-dev @types/lightningjs__ui but got 404.

which package should I install to fix this? or should I have to manually add the .d.ts file?

can anyone help?

We are currently working on the type definitions for the Lightning-UI library. No estimate on when that will be available for now. You will have to ignore that error for now and use those components as any for the time being.

1 Like