Skip to content

--mobile is not accepted with ng new #6346

Closed

Description

@amishra511

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.

Activity

  1. kacase commented on May 17, 2017

    @kacase

    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.

  2. tytskyi commented on May 17, 2017

    @tytskyi

    @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

  3. kacase commented on May 17, 2017

    @kacase

    @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

  4. amishra511 commented on May 17, 2017

    @amishra511
    Author

    @kacase I will check this guide out.

  5. self-assigned this
    on May 17, 2017
  6. sumitarora commented on May 25, 2017

    @sumitarora
    Contributor

    @amishra511 Is it still an issue?

  7. amishra511 commented on May 28, 2017

    @amishra511
    Author

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

  8. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  9. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions