angular2-multiselect-dropdown
angular2-multiselect-dropdown copied to clipboard
@tweenjs/tween.js declaration issue with angular 8.
I have try to install npm install --save @types/tweenjs; but still got error on compilation time.
Could not find a declaration file for module '@tweenjs/tween.js'. 'E:/office/krafty-frontend/node_modules/@tweenjs/tween.js/src/Tween.js' implicitly has an 'any' type.
Try `npm install @types/tweenjs__tween.js` if it exists or add a new declaration (.d.ts) file containing `declare module '@tweenjs/tween.js';`
2 import * as tween from '@tweenjs/tween.js';
~~~~~~~~~~~~~~~~~~~
Hi @Nouman24 ,
Try following step to resolve.
- npm i @types/tween.js --save
- remove "types": [] from tsconfig.app.json
This should work, let me know
I'm not sure if it's ok to comment here, but, I have the same issue in Angular 11. In package.json I have: "@types/tween.js": "^18.6.1", "angular2-multiselect-dropdown": "^4.6.9" I tried the solution above, but it's not working. Please, help me.
As a solution, I changed the version to 4.2.3 and it's working.
Thank you, Simona
Add @tweenjs/tween.js to common dependencies https://angular.io/guide/build#configuring-commonjs-dependencies
"allowedCommonJsDependencies": ["@tweenjs/tween.js"]