title: How to create a multi-apps project in Ionic 4?
body: <p>I try to create a simple <b>multi-apps project</b> in Ionic 4, following the ionic documentation, but it doesn't work.</p>
  <p><a href="https://ionicframework.com/docs/cli/configuration#multi-app-projects" rel="nofollow noreferrer">https://ionicframework.com/docs/cli/configuration#multi-app-projects</a></p>
  <p>My config :</p>
  <ul>
  <li>Ionic : v4.12.0</li>
  <li>Angular CLI : 7.3.8</li>
  <li>Node : 10.15.1</li>
  <li>npm : 6.9.0</li>
  <li>Windows 10</li>
  </ul>
  <p>What I have done :
  I have created a directory “monorepo”.
  In this folder, I created a file ionic.config.json and pasted in it the code below:</p>
  <pre><code>{
    &quot;projects&quot;: {}
  }
  </code></pre>
  <p>In monorepo, I create a second directory : apps.
  In this directory (with the command prompt), I write the command :
  ionic start &quot;app1&quot; --no-deps</p>
  <p>monorepo/ionic.config.json is correctly populated with the data:</p>
  <pre><code>{
    &quot;projects&quot;: {
      &quot;app1&quot;: {
        &quot;name&quot;: &quot;app1&quot;,
        &quot;integrations&quot;: {},
        &quot;type&quot;: &quot;angular&quot;,
        &quot;root&quot;: &quot;apps\\app1&quot;
      }
    }
  }
  </code></pre>
  <p>But when I try to serve the server, it won't work.</p>
  <p><code>ionic serve --project app1</code> return me this error message :</p>
  <pre><code>&gt; ng run app1:serve --host=0.0.0.0 --port=8100
  [ng] Project 'app1' could not be found in workspace.
  [ng] Error: Project 'app1' could not be found in workspace.
  [ng]     at Workspace.getProject (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\workspace\workspace.js:93:19)
  [ng]     at Architect.getBuilderConfiguration (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\architect\src\architect-legacy.js:117:41)
  [ng]     at RunCommand.runSingleTarget (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:160:45)
  [ng]     at RunCommand.runArchitectTarget (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:201:35)
  [ng]     at RunCommand.run (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\commands\run-impl.js:14:25)
  [ng]     at RunCommand.validateAndRun (C:\Users\name\AppData\Roaming\npm\node_modules\@angular\cli\models\command.js:124:31)
  [ng]     at process._tickCallback (internal/process/next_tick.js:68:7)
  [ng]     at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
  [ng]     at startup (internal/bootstrap/node.js:283:19)
  [ng]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
  
  [ERROR] ng has unexpectedly closed (exit code 1).
  
          The Ionic CLI will exit. Please check any output above for error details.
  </code></pre>
  <p>When I go under the file associated with the error (workspace.js:93:19), and I do console.log, I obtain this info:</p>
  <pre class="lang-js prettyprint-override"><code>getProject(projectName) {
       this._assertLoaded();
  
       console.log(&quot;this.projectName : &quot; + projectName); // this.projectName : app1
       console.log(&quot;\n\nthis._workspace.projects : \n&quot;);
       console.log(this._workspace.projects); // this._workspace.projects : app and app-e2e
  
       const workspaceProject = this._workspace.projects[projectName];
  </code></pre>
  <p>(Values displayed are in comments).</p>
  <p>The projectName variable seems ok. But the available project in <code>this._workspace.projects</code> are app and app-e2e which seem weird.</p>
  <p>What is my problem ?
  What did I miss ?</p>