jellyjs / angular2-file-drop

Angular2 component with Drag and Drop support for files
23 stars 18 forks source link

Cannot find name 'FileAPI' #21

Open bouchepat opened 6 years ago

bouchepat commented 6 years ago

Although the app is functioning fine, getting this:

node_modules/angular2-file-drop/src/file-drop.ts (81, 7): Cannot find name 'FileAPI'.

Running meteor 1.6.0.1.

pbureau commented 6 years ago

Same issue here, solved this by editing file-drop.ts with import FileAPI from 'fileapi';

bouchepat commented 6 years ago

Thanks I also fixed it by adding this a custom typing instead of the file-drop.ts directly since it will be overwritten on reinstallation of npm packages. To note, the error popped up when I started using the new angular-meteor compilers. Did not have any issues before.