Skip to content

ng update @angular/cli with allowOutsideOutDir not working - Path is Invalid #10647

Closed
@johnpapa

Description

@johnpapa

Versions


Angular CLI: 6.0.0
Node: 8.11.1
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@angular/cdk                      5.2.4
@angular/material                 5.2.4
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

  • create an angular app with a src of /src/client
  • create a folder src/server (this is where i could put a node server)
  • add this to your package.json inside of apps, assets.
        {
          "glob": "**/*.*",
          "input": "../server/",
          "output": "../",
          "allowOutsideOutDir": true
        },
        {
          "glob": "package.json",
          "input": "../../",
          "output": "../",
          "allowOutsideOutDir": true
        }
  • run ng update @angular/cli

Observed behavior

▶ng update @angular/cli
            Updating karma configuration
            Updating configuration
Path "/../" is invalid.

Mention any other details that might be useful (optional)

I removed those allowOutsideOutDir entries and it seems to work. But I think it should work with them.

cc @filipesilva

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulfreq1: lowOnly reported by a handful of users who observe it rarelyseverity3: broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions