Skip to content

--mobile is not accepted with ng new #6346

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

Closed
amishra511 opened this issue May 16, 2017 · 7 comments
Closed

--mobile is not accepted with ng new #6346

amishra511 opened this issue May 16, 2017 · 7 comments

Comments

@amishra511
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.3
node: 6.9.2
os: win32 x64
@angular/cli: 1.0.3

Repro steps.

I am following the steps given in Angular Mobile guide to create new app with Angular CLI
https://mobile.angular.io/guides/

On executing: ng new hello-mobile --mobile
I get:

The option '--mobile' is not registered with the new command.

As a result, the angular app gets generated but without the files required for mobile development

The log given by the failure.

The option '--mobile' is not registered with the new command.

Desired functionality.

Expecting an angular app to be generated with files required for mobile development

Mention any other details that might be useful.

@kacase
Copy link

kacase commented May 17, 2017

The mobile option was removed some time ago because it did not work properly. #4143

The only way to create a mobile angular app is currently adding the manifest and service worker yourself.

@tytskyi
Copy link

tytskyi commented May 17, 2017

@amishra511 this guide is totally outdated,
npm install -g angular-cli this is not correct name of package

As for now you should make you app "mobile" manually, as @kacase pointed above

@kacase
Copy link

kacase commented May 17, 2017

@amishra511
There is a pretty good guide by @coryrylan about how to work with the manifest and service-worker available. I just tested it and it works like a charm.
He suggests using a combination of a manual manifest and sw-precache which is maintained by google.

Check out his guide here:
https://coryrylan.com/blog/fast-offline-angular-apps-with-service-workers

@amishra511
Copy link
Author

@kacase I will check this guide out.

@sumitarora
Copy link
Contributor

@amishra511 Is it still an issue?

@amishra511
Copy link
Author

No, not anymore. I can create an angular mobile app now the way suggested by @kacase

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants