-
Notifications
You must be signed in to change notification settings - Fork 12k
ng new command with --mobile flag fails while without --mobile flag works fine. #1174
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
After git pull. below is the error occurs during "npm start". log: p1 $npm start
(node:1755) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. npm ERR! Darwin 15.0.0 npm ERR! Please include the following file with any support request: |
+1 to that issue |
similar error... running rc3 in windows... I ran it without --mobile and it worked angular-cli: 1.0.0-beta.8
(node:7156) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please u |
I'm seeing this too with beta.8. Mobile seems to be completely broken. |
This appears to be caused by using the old angular-universal Though using this new version of angular-universal leads to the following exception:
|
oh I found the problem. the angular2-broccoli-prerender plugin is using the old api that used document rather than template. I can add support for document again and release a patch |
@Splaktar can you update to |
@gdi2290 OK, it's working now! Thanks. Here's the output:
Verified that I'm also able to Looks like the fix for this issue is to upgrade |
kool, angular2-broccoli-prerender just needs to be updated now |
Have you guys tried use the -prod flag? It doesn't seem to be working for me.
I used the following procedure.
I get an error saying
Also if I change [email protected] to latest, the same error occurs. |
you also need to include parse5 ^1.5.0 and @angular/platform-server |
Thanks. I tried that and it didn't work still. I noticed that when I did try that, it kept bringing up different dependencies. Out of curiosity, I decided to delete the dist directory and everything worked. I must've tried to do "ng serve" before doing "ng serve -prod". I tried making a new project and it seems to not like when you switch from doing "ng serve" to "ng serve -prod" which is why it keeps saying that folders aren't empty. Weird issue but at least I can finally have the production bundle! Thanks for all the help. |
What should be the version to use for devDependency "angular2-broccoli-prerender" ? |
Is This same issue as #958 |
It's related but not the same. |
Beta.9 and this issue still here. |
I confirm. I also still have the "Cannot read property 'makeCurrent' of undefined" on beta.9 :( |
I have the same problem too. I know that we're in Beta ere but it would be good if at least ng new foo were tested before each release. |
Closed as issue was made obsolete by #1455. |
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:
Mac OSX El Capitan
NG Version:
angular-cli: 1.0.0-beta.6, node: 6.2.2, os: darwin x64
Reproduction step:
ng new project_name --mobile (the issue happens here, to see proper log need to do npm install inside the project folder)
cd project_name
npm install
log:
[email protected] /Users/yogeshofit/Desktop/angular2/workspace/Playbook-new-mobile4
├── UNMET PEER DEPENDENCY @angular/[email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ UNMET PEER DEPENDENCY [email protected]
│ └── UNMET PEER DEPENDENCY angular2-universal@^0.102.0
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN [email protected] requires a peer of angular2-universal@^0.102.0 but none was installed.
npm WARN [email protected] requires a peer of angular2-universal@^0.102.0 but none was installed.
npm WARN [email protected] requires a peer of angular2-universal@^0.102.0 but none was installed.
npm WARN [email protected] requires a peer of angular2-universal@^0.102.0 but none was installed.
Similar issue happened in Angular/QuickStart (angular/quickstart#135)
Regards,
Yogesh Surendran alias CarreraPHP
The text was updated successfully, but these errors were encountered: