-
Notifications
You must be signed in to change notification settings - Fork 52
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 with ng build --prod #10
Comments
Thanks again for your work but this update don't fix the problem for why I opened this issue. It's still complaining about the .ts and bad packaging, and failing when I'm trying to compile. On the other hand, If i delete the .ts that give me problems, my typescript doesn't find the functions of the library like, getAll(), getRelationArray(), etc... |
update to 4.x |
I'm following your changes and my last message was about 4.3.1 version. |
please get an running example, o plunker |
It's the same problem that #12 said, I'm working on a running example to show you but for me serve is working, build it's that fails to me |
I have it already, now it's not failing when you do "ng build --prod" but the same error appears when you do "ng serve" so I supose that it will be the same problem |
"build": "ng build --prod --aot=false", Is resolved |
I really need AOT activated so please I can accept this workaround for now but please let the issue opened for the guys of ng-packagr issue that you referenced here they would see that the status is still pending. Thanks. |
my library work right. this is solution, contact angular team |
Also experiencing the problem with AOT when running "ng serve -aot" or "ng build --prod". The error is: ERROR in Error during template compile of 'AppModule' Using: "angular4-hal": "^4.5.1" The problem is with the line in app.module.ts imports: It disappears if I comment it out. Though, obviously, the application later crashes because it cannot find AngularHal. The reason might be pointed out in the following example: https://github.com/jeffora/ng-barrel |
"build": "ng build --prod --aot=false", Is resolved |
Sorry, your solution is just a workaround that disables AOT and thus
hampers the performance of any application that includes Angular4-HAL:
https://blog.nrwl.io/angular-is-aot-worth-it-8fa02eaf64d4
|
Hi again, after solving #9 I'm trying to execute again "ng build --prod" and gives me this error:
I checked the src folder and there isn't any of the files that give me the error and after some digging I found this #github.com/ng-cli#8284 and I think that I'm on the right track but not able to resolve it.
This is due a bad packaging? Because if I clone the project and try to compile by myself every .js is there normally... Thank you for your effort
The text was updated successfully, but these errors were encountered: