-
Notifications
You must be signed in to change notification settings - Fork 12k
AOT compilation fails with empty route path from static routes class #6782
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
This isn't something we support currently, but might in the future. |
@filipesilva please note that it is not the indirection that is the problem but the empty string. All the other indirect routes paths (like bar in the example above) do not cause any problem and work as expected. Hence I don't see the link to #6784 |
Thanks @filipesilva . Can you please suggest me an alternative to pull this off? I have seen some articles on adding routes dynamically and replacing them using Any tip would be of great help.! (This is in reference to #6784.) |
@andreasbhansen you're right, I think I misread these two issues. Given that other routes work, this might be a problem with @kichnan I'll reopen and answer your issue there. |
@filipesilva thanks, since I did not know where the problem was I opened an issue in both places. Here is the corrsponding issue: |
I think you tagged the wrong Andreas, @filipesilva :) |
@andreasrueedlinger my bad, sorry about that :E |
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. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.1.3
node: 6.9.1
os: darwin x64
@angular/animations: 4.2.4
@angular/common: 4.2.4
@angular/compiler: 4.2.4
@angular/core: 4.2.4
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.2.4
@angular/http: 4.2.4
@angular/material: 2.0.0-beta.6
@angular/platform-browser: 4.2.4
@angular/platform-browser-dynamic: 4.2.4
@angular/router: 4.2.4
@angular/cli: 1.1.3
@angular/compiler-cli: 4.2.4
Repro steps.
We have a routes class which holds all the static routes strings to be used in routes configuration of angular and in all the router links:
Using this link in the routes setup breaks the AOT compilation with angular CLI:
The log given by the failure.
Desired functionality.
Successful AOT compilation
The text was updated successfully, but these errors were encountered: