-
Notifications
You must be signed in to change notification settings - Fork 12k
ng serve -prod fails (beta 4) #844
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 was pushing another issue with the same problem when I saw this one.
|
@bbohling & @ddiazpinto beta 5 was JUST published, which should revolve this issue for you, please re-test. Closing this issue for now, but if you report back that it is not resolved, it can be reopened |
you are correct, beta 5 fixes this issue. thanks! |
Unfortunately I still have a very similar error on both
|
hi, |
Sorry that this has not resolved your issues. @filipesilva can you take a look at this, I'm assigning it to you. |
i still have same problem in beta 5 |
I have the same issue using beta 5 the -prod flag causes the following error
|
Have the same problem under Win1064 with rc1 angular-cli: 1.0.0-beta.5
|
Same problem here: `tetreaul@flippy:~/code/strongmanOnline$ ng build -prod The broccoli plugin was instantiated at: |
@dottodot @hmrc87 @lucastetreault I just tried reproducing on a new beta.5 project and didn't have the issue you show. beta.5 fixed this, but if you are upgrading a beta.4 or below project then you also need to update |
@dottodot re-reading your issue, it seems rather different. The failure of the build to find |
@filipesilva OK so what's wrong with this then as don't know why this would be causing the issue.
|
@dottodot I seem to be having a similar issue. For me |
Same problem for me when using angular-material2. |
@dottodot I'm unfamiliar with @Zyzle @MrGoro I can investigate the The original issue by @bbohling has already been solved so I'd prefer not to keep adding posts here for diferent issues. |
@filipesilva Ok I'll try and put something together when I get a moment, what's confusing though is why it works without the -prod. If something was configured incorrectly I would have though it should always fail. |
@filipesilva the issue I'm seeing has been solved by the fix here and seems to be angular2-material specific angular/components#541 @MrGoro maybe its the same issue you're seeing? |
Amazing :) Problem fixed! Thanks for the hint. |
@filipesilva OK I've managed to get it to build without errors but when I build with -prod the
Sorry finding this all pretty confusing just to include a 3rd party script. |
@dottodot unfortunately, for bundling to work (and thus production builds to work) you can't import I agree it's not very straightforward, and making this process simpler is one of our biggest priorities right now, if not the number 1. |
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. |
Mac OS X 10.11.4 (El Cap)
ng --version
.angular-cli: 1.0.0-beta.4
node: 4.4.1
os: darwin x64
do on your code? etc.
ng new ngclitest
cd ngclitest
ng serve
works, yeah!ng serve -prod
fails, booZero code changes.
more information.
Was able to reproduce more than once.
ng build -prod
fails too with same error.The text was updated successfully, but these errors were encountered: