unlayer / angular-email-editor

Drag-n-Drop Email Editor Component for Angular
https://unlayer.com
MIT License
203 stars 166 forks source link

Error in node_modules folder #127

Closed JonathanOJ closed 4 months ago

JonathanOJ commented 4 months ago

Im trying to use your lib in the version 15 of Angular, but when i start the project explode this error in the node_modules:

error TS2688: Cannot find type definition file for 'unlayer-types/embed'. ///

Cannot find module 'embed/index' or its corresponding type declarations. import Embed from 'embed/index';

Cannot find module 'embed/Editor' or its corresponding type declarations. 3 import { Editor as EditorClass } from 'embed/Editor';

Cannot find module 'state/types/types' or its corresponding type declarations. 4 import { JSONTemplate as JSONTemplateType, ToolsConfig as ToolsConfigInterface } from 'state/types/types';

It includes everything needed and what the documentation wants, I import the module and script in index.html:

omerzahidbajwa commented 4 months ago

please try with "skipLibCheck": true flag under tsconfig.json->compilerOptions, we are working on a fix for our typescript support lib

and add the following package (npm install --save-dev unlayer-types)

JonathanOJ commented 4 months ago

Its works! Thanks