Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Angular 6 Package format compliance #55

Open
vycoder opened this issue May 9, 2018 · 5 comments
Open

Angular 6 Package format compliance #55

vycoder opened this issue May 9, 2018 · 5 comments

Comments

@vycoder
Copy link

vycoder commented May 9, 2018

Just upgraded our application, I'm getting this error on runtime:

ERROR in ./node_modules/ngx-quill-editor/index.ts
Module build failed: Error: /path-to-app/node_modules/ngx-quill-editor/index.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 (/home/jangeles/Codespace/marshall-space/marshall-ce/src/frontend/node_modules/@ngtools/webpack/src/packages/ngtools/webpack/src/angular_compiler_plugin.ts:920:15)
    at plugin.done.then (/home/jangeles/Codespace/marshall-space/marshall-ce/src/frontend/node_modules/@ngtools/webpack/src/packages/ngtools/webpack/src/loader.ts:49:29)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
 @ ./src/app/page/preview/keywords-and-descriptions/keywords-and-descriptions-preview.component.spec.ts 26:0-53 148:16-33
 @ ./src sync \.spec\.ts$
 @ ./src/test.ts

any chance that this will get sorted out?

@kmorales13
Copy link

kmorales13 commented May 9, 2018

Repo hasn't been updated in a while, you can get around this by adding it to the include property in your tsconfig file:

"include": [
    "src/**/*",
    "node_modules/ngx-quill-editor/*"
  ]

@nimatrazmjo
Copy link

nimatrazmjo commented Jul 11, 2018

@kmorales13, I have the same problem. It did not help me.

@doctsh
Copy link

doctsh commented Aug 20, 2018

me too same problem

@Artaud
Copy link

Artaud commented Dec 8, 2018

@kmorales13 Thanks a big bunch, it helped me!

@syedzahed
Copy link

syedzahed commented Sep 10, 2019

Include quill editor in tsconfig.app.json like this

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "./out-tsc/app",
    "types": []
  },
  "include": [
    "src/**/*.ts",
    "node_modules/ngx-quill-editor"
  ],
  "exclude": [
    "src/test.ts",
    "src/**/*.spec.ts"
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants