angular-medium-editor icon indicating copy to clipboard operation
angular-medium-editor copied to clipboard

medium-editor.directive.ts is missing from the TypeScript compilation

Open K-7 opened this issue 7 years ago • 0 comments

Not able to use angular-medium-editor library in Angular 5

Packages installed are mentioned Below "angular-medium-editor": "^4.0.0-alpha", "angular/core": "^5.2.0", "typescript": "~2.5.3"

During "ng serve" command I get the following error

ERROR in ./node_modules/angular-medium-editor/medium-editor.directive.ts Module build failed: Error: /Users/K2A/GIT/traveldiary/webapp/node_modules/angular-medium-editor/medium-editor.directive.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv). at AngularCompilerPlugin.getCompiledFile (/Users/K2A/GIT/traveldiary/webapp/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:656:23) at plugin.done.then (/Users/K2A/GIT/traveldiary/webapp/node_modules/@ngtools/webpack/src/loader.js:467:39) at at process._tickCallback (internal/process/next_tick.js:188:7) @ ./src/app/pages/pages.module.ts 18:32-88 @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

Kindly let me know is there is anything that I can do to fix this issue and use the library

K-7 avatar Apr 15 '18 05:04 K-7