Skip to content

Running "ionic start --capacitor" ignores project/package ids when initializing capacitor #3519

Description

@ionitron-bot

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.

√ Gathering environment info - done!
[WARN] You are not in an Ionic project directory. Project context may be missing.

Ionic:

   ionic (Ionic CLI) : 4.0.6

System:

   NodeJS : v8.11.3
   npm    : 6.3.0
   OS     : Windows 10```

**Describe the Bug**
Passing --capacitor to "ionic start" will always cause "capacitor init" to ignore the package/project settings passed in and use the default "ionic-app-base" and "io.ionic.starter", overwriting your intended package/project values.

**Steps to Reproduce**
Steps to reproduce the behavior:
1. ionic start X blank --type=angular --project-id=X --package-id=com.x.X --no-link --cordova --capacitor
2. "capacitor init ionic-app-base io.ionic.starter" is ran regardless of project/package settings
3. Android Studio fails to clean or build

**Expected Behavior**
"capacitor init" should run with the package and project ids passed in to ionic start

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcapacitorIonic projects integrated with Capacitor

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions