file-drop
file-drop copied to clipboard
Cannot find name 'HTMLAttributes'
While using this wc in Angular, I am getting the following error on running ng serve --aot :
ERROR in node_modules/file-drop-element/dist/filedrop.d.ts(32,46): error TS2304: Cannot find name 'HTMLAttributes'.
Steps to reproduce the issue:
- Create angular project with the cli (
ng new dummyProject
) - Install and add wc polyfill (
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
) - Update tsconfig.json to allow js (
"allowJs": true,
) - Add
schemas: [CUSTOM_ELEMENTS_SCHEMA]
in AppModule - Import the file-drop wc in AppModule (
import 'file-drop-element';
)
@PaulKinlan
Yep - the HTML Attributes was a preact thing, I am not sure how Angular deals with TypeScript, but I would be happy to add support.