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?