-
Notifications
You must be signed in to change notification settings - Fork 12k
ng new --mobile fails with peerDependencies not satisfied for angular2-universal #958
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
Yeah it seems that a dependency of |
Meanwhile, while a new CLI version that that change isn't included, you can do the following:
|
Doing this and then ng serve ends up in "undefined" on http://localhost:4200/.. angular-cli: 1.0.0-beta.5 |
After doing what @filipesilva suggested, I am now getting the same result as @mackelito - when I Version details:
|
Not sure why but now it works for me... |
@mackelito the last command you send would not create a mobile app, hence you don't use angular-universal ! I can confirm the |
Ah.. My bad! 😬 |
@filipesilva did you give it a test-spin ? because with the dep "angular2-universal":"0.101.5" it starts but as mentioned by @mackelito and @drewstiff the served page is displaying only:
|
Ugh... this bad. @jeffbcross can you have a look and propose a possible solution? |
same problem here. after running |
Im getting this build error with [email protected] `The Broccoli Plugin: [AppShellPlugin] failed with:
The broccoli plugin was instantiated at: |
Same 'undefined' problem after tried the @filipesilva workaround angular-cli: 1.0.0-beta.5
node: 6.2.1
os: linux x64 |
Here is my experience on this > at office I am using node 4.4.5 and it seems that changing angular2-univeral version to 0.101.5 actually serves the app with --mobile. This however creates build error with `The Broccoli Plugin. At home I am using 6.x.x version of node. In this case using universal 0.101.5 causes angular just serve undefined in the page |
@filipesilva is this issue resolved by 740805b? |
@jeffbcross no, that fix did not work, see #958 (comment) |
I had some success going back to |
@worldspawn this works but then you cannot ng build the project because there is an error Build failed. |
did anyone able to resolve this? |
@tvsijin +1 on that, I've been waiting for about a week to hear news of this issue being solved. I'm under the impression that we can't make I'm supposed to be building a web app for a friend's business, but I'm stuck between using Angular Mobile or making an Ionic 2 app and just running it in the browser... I was hoping that this issue would be resolved soon, because I'm already proficient in Angular, and would much rather use Angular Mobile than have to learn Ionic 2 in a short amount of time. |
I found a workaround for this in stack overflow, and worked well for me. |
@MauroJr thanks! |
Tried the solution and at first it seems to work.. Build error The Broccoli Plugin: [AppShellPlugin] failed with: The broccoli plugin was instantiated at: |
I also tested this solution right now, and can verify that I found that I don't think that this issue is fully solved by the solution in #958 (comment), but it is greatly alleviated. I will put up a PR that implements it. |
@filipesilva if you edit "app.component.html" does http://localhost:4200 show the wanted result? |
See angular#958#issuecomment-227269837
@mackelito what change did you make? |
See angular#958#issuecomment-227269837
Well.. any kind of change breaks it hehe..
`
to
` |
@mackelito I tried changing something simple like the whitespaces or adding some text on Changing This issue won't be closed anyway, the problem is still there, it's just alleviated. |
See angular#958#issuecomment-227269837
hmmm.. strange that I don´t get the same problem as you!.. oh well.. I guess I´ll just have to wait :) |
Having same issue on mac + node 6 + last angular-cli. workaround does not work. the only way to use it now without --mobile option. |
@filipesilva I fixed The peerDependencies issue w Universal PR angular/universal#449, but still trying to look into what's causing nothing to render. |
can confirm the problem angular-cli: 1.0.0-beta.6 updating the angular universal version to latest 0.101.9 makes it npm installable. however running ng serve ends in an ton of errors in console and only show undefined in the browser. |
See angular#958#issuecomment-227269837
See angular#958#issuecomment-227269837
Issue made obsolete by #1455. In addition to normal upgrade steps for webpack, I'd like to add that See https://github.com/angular/angular-cli/blob/master/addon/ng2/blueprints/mobile/files/__path__/main-app-shell.ts for an example. The important bit is the I should add a comment there to explain it tbh... Also see angular/universal#464. Let me know if you're still experiencing problems on the upcoming |
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. |
MacOSX El Capitan
Very clean install, fresh OS, fresh Node (from pkg install)
The text was updated successfully, but these errors were encountered: