Bug - "Issue in @scania/components and @scania/theme-light"
Closed this issue · 4 comments
avishek-scania commented
Hi Team! I installed the two modules below in my angular project as per instruction in sdds/demo/angular at master · scania-digital-design-system/sdds · GitHub
npm i @scania/components --save-dev
npm i @scania/theme-light --save-dev
But getting the below error for both modules.
"Could not find a declaration file for module '@scania/components'. 'c:/.../node_modules/@scania/components/dist/collection/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/scania__components` if it exists or add a new declaration (.d.ts) file containing `declare module '@scania/components';`"
"Could not find a declaration file for module '@scania/theme-light'. 'c:/.../node_modules/@scania/theme-light/dist/module.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/scania__theme-light` if it exists or add a new declaration (.d.ts) file containing `declare module '@scania/theme-light';`"
To Reproduce
- Install latest Angular version
- Install the @scania components and theme-light modules
- Compile/Run the project.
Expected behavior
SDDS modules should work out of the box.
Version of SDDS or which package
Latest version
System information:
- Framework: Angular v12.1.4
- Device: Desktop
- OS: Windows 10
- Browser: NA
georgechamoon commented
did you solve it?
mmexvr commented
Hi, we are working on somewhat of solution to this, bit it tied to our core solution, so I require some work around it and testing also.
Work around right now is either set "strict: false" in ts config or add a index.d.ts file and add those two packages.
Sorry for the late answer
mmexvr commented