Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using with Angular 6.0 #67

Open
davidgallegolobato opened this issue May 17, 2018 · 7 comments
Open

Error when using with Angular 6.0 #67

davidgallegolobato opened this issue May 17, 2018 · 7 comments

Comments

@davidgallegolobato
Copy link

davidgallegolobato commented May 17, 2018

I got this error when using with angular 6.0:

ERROR in ./node_modules/angular2-indexeddb/index.ts
Module build failed: Error: ....\ui\node_modules\angular2-indexeddb\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 askthem to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (.....\ui\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:708:23)
at plugin.done.then (.......\ui\node_modules@ngtools\webpack\src\loader.js:41:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

Thanks.

@davidgallegolobato
Copy link
Author

Removing the .ts files from my local installation of the package made it work.

Is there any reason why the .ts files are distributed with the npm package?

@sebastientromp
Copy link

Also, having .ts files in the package does not work well with webpack's watch feature (so I have to remove them myself from the local installation folder as well).

@mividedaninni
Copy link

Will it be fixed?

@chami007
Copy link

add the following code to tsconfig.app.json did the trick.

"include": [
    "../src/**/*",
    "../node_modules/angular2-indexeddb/index.ts",
    "../node_modules/angular2-indexeddb/angular2-indexeddb.ts",
  ]

@rtaft
Copy link

rtaft commented Dec 4, 2018

Adding those files to the include causes linting to fail, as they don't pass lint standards. Please fix this soon.

@rtaft
Copy link

rtaft commented Dec 5, 2018

A temporary solution is to update your package.json and add the following to your scripts section:
"postinstall": "rm node_modules/angular2-indexeddb/*.ts"
This will delete the files after an npm install

@marcodafonseca
Copy link

I have this same issue with angular 7.1.0

When will this be resolved?

Error: [redacted]\node_modules\angular2-indexeddb\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 ([redacted]\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:719:23)
at plugin.done.then ([redacted]\node_modules@ngtools\webpack\src\loader.js:41:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

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

No branches or pull requests

6 participants