-
Notifications
You must be signed in to change notification settings - Fork 15
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
index.ts is not part of the compilation output. #24
Comments
+1 Same for me after upgrading to sweet A5. Thanks for the links. |
I fell victim to this issue too. The suggestion to rename index.ts to index,js worked for me. Thanks for the tip. Be nice to get the package fixed. I know I'm going to delete my node_module directory someday and do a "npm install" and be right back here. :) |
Here's an alternative workaround that worked for me. Instead of renaming index.ts, I added the following to tsconfig.json:
|
Same issue here, dae721 comment works for me, so added it to the tsconfig.json file. ERROR in ./node_modules/ngx-markdown-editor/index.ts |
I added the following as a node script that now runs before any of my builds:
not the best solution but it takes care of it for now. I'm not sure why @dae721 's solution didn't work for me but i didn't spend time investigating why. |
Restructure as Angular library to solve #24 and support Angular 5+
I see a merge a few days ago, I still get this error in Angular 5+ as of a few minutes ago, |
Hi @bjarecki, |
I tried v3.0.1 in my Angular 5 dev env and this issue seems to be fixed now. No more "index.ts is missing from the TypeScript compilation" error. It also works with Angular 6. Nice job, Elliot. Thanks. |
@AndersTornkvist thank you very much for providing the fix for this issue! You are an absolute legend. |
This issue seems to come up when using Angular v5.0.0.
It's being discussed here: angular/angular-cli#8263
A workaround to this issue can be found here: angular/angular-cli#8284 (comment)
But is it possible to get it fixed in the package itself?
Long story short: TS source files shouldn't be included in the package.
A simple, temporary fix for users of this package is to simply rename
index.ts
toindex.js
.The text was updated successfully, but these errors were encountered: