angular2-multiselect-dropdown icon indicating copy to clipboard operation
angular2-multiselect-dropdown copied to clipboard

@tweenjs/tween.js declaration issue with angular 8.

Open Nouman24 opened this issue 4 years ago • 3 comments

image

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';
                         ~~~~~~~~~~~~~~~~~~~

Nouman24 avatar Apr 17 '20 12:04 Nouman24

Hi @Nouman24 ,

Try following step to resolve.

  1. npm i @types/tween.js --save
  2. remove "types": [] from tsconfig.app.json

This should work, let me know

shubhamsv avatar May 15 '20 10:05 shubhamsv

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

simonatocanie avatar Mar 12 '21 09:03 simonatocanie

Add @tweenjs/tween.js to common dependencies https://angular.io/guide/build#configuring-commonjs-dependencies

"allowedCommonJsDependencies": ["@tweenjs/tween.js"]

matiasmoron avatar Sep 09 '21 19:09 matiasmoron