Skip to content

allowOutsideOutDir for assets not working again #9363

Closed

Description

@trendzetter

Versions

Tested on:
1.6.3
1.6.5
Windows 10

Repro steps

  • npm install -G @angular/cli

  • cd to project with assets that need to be copied outside the project folder. From the .angular-cli.json:
    "assets": [{
    "input": "./assets/",
    "glob": "**/*",
    "output": "../EcView/WebContent/assets",
    "allowOutsideOutDir": true
    }],

  • ng build

Observed behavior

Build failed:

>ng build
An asset cannot be written to a location outside the project.

Desired behavior

The build process copies the assets to the specified folder and completes the compilation of source code.

Other details

Seems similar to, possible regression of #8613

Activity

  1. self-assigned this
    on Jan 24, 2018
  2. removed their assignment
    on Feb 1, 2018
  3. clydin commented on Feb 7, 2018

    @clydin
    Member

    @trendzetter Are you still experiencing this issue with 1.6.7?

  4. trendzetter commented on Feb 14, 2018

    @trendzetter
    Author

    ~~Issue no longer present in 1.6.8.~~~

    I did not test correctly. The "allowOutsideOutDir" configuration was not present in the .angular-cli.json.
    The issue is not resolved.

  5. yuvalbl commented on Apr 23, 2018

    @yuvalbl

    Angular version: 6.0.0-rc.5
    Angular-CLI version: 6.0.0-rc.5

    I've created a new project and was able to build to a directory outside the project root, with no allowOutsideOutDir flag

    side-note:
    If I get it correctly, .angular-cli.json configuration is now included in angular.json.

    Repro steps:

    1. create new project.
    2. in angular.json change outputPath to: '../MyDir'
    3. run ng build
    4. see build output outside the project root directory

    Related to #9686
    seems like this commit is the problem

  6. filipesilva commented on May 4, 2018

    @filipesilva
    Contributor

    This option has been removed in Angular CLI 6. I now added a Breaking Changes section to https://github.com/angular/angular-cli/releases/tag/v6.0.0, with this change listed, will also add a warning during the update process. This is being tracked in #10647.

  7. angular-automatic-lock-bot commented on Sep 8, 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.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions