-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod fails in beta 1.0.0-beta.32.3 #4918
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
Comments
I can verify this, and add more information: First- it appears that this may be related to the issue identified by @EMorales in #4072. Secondly - we (vmware) can verify that if a shared library packages the source typescript alongside the d.ts, js, and metadata files, the compiler will throw this error:
Is there any benefit to packaging |
Libraries shouldn't ship their TS files, but the CLI shouldn't just die if they happen to be there either. Can you get me a repro so we can investigate? |
Hey @filipesilva, are you directing that to anyone in particular? I used -cli and one 3rd party item, ng2-nouislider that I took the ts file out from, and have been using it for my own personal site. Public repo is here, if you need it. Please be advised: at the moment, I don't have nouislider in affect, because I am in the middle of investigating an unrelated issue for production with it. |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
The log given by the failure.
Mention any other details that might be useful.
ng build works fine, ng build --prod throws this error on each of my services that has an @Injectable() decorator. the services that do not have @Injectable() do not throw this error. I've tried blowing away node_modules and several different versions of CLI etc, but with no luck. Package JSON below:
The text was updated successfully, but these errors were encountered: