question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build to parent outDir folder with 1.5.4

See original GitHub issue

Versions

Angular CLI: 1.5.4
Node: 6.11.2
OS: win32 x64 (Win10)
Angular: 4.4.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-webworker
... platform-webworker-dynamic, router, tsc-wrapped

@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.5.4
@angular/material: 2.0.0-beta.12
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.21
@angular-devkit/schematics: 0.0.37
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.4
@schematics/angular: 0.1.7
typescript: 2.3.4
webpack: 3.8.1

Repro steps

  • Set apps[0].outDir as "../dist" on .angular-cli.json
  • run ng b

Observed behavior

Only a error message: An asset cannot be written to a location outside the project.

Desired behavior

Build the project without problem.

Mention any other details that might be useful (optional)

We have tried to add allowOutsideDir to ours assets configuration on cli config, but doesn’t work. Is this the expected behaviour? I don’t found related information about it in de64b86 or #8122 😦

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:30
  • Comments:32 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
rbluethlcommented, Nov 23, 2017

Same problem here. I can’t believe a major functionality of the CLI, “ng b”, doesn’t work after an update… Downgrade to 1.5.3…

4reactions
Taha-Di-Nerocommented, Nov 27, 2017

Patching the 1.5.4 with fix in #8630 solve the problem, so just wait for the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tsconfig.json outDir in to parent - typescript
I am trying to migrate my project to use ts. Now I have two folders where I write my js files and I...
Read more >
Section J Attachment 2 Performance Work Statement 1 ...
The Contractor shall develop and implement a USAP Information Security. Plan that will be utilized by NSF as the Government's guidance and management...
Read more >
Changelog
#10356: Sphinx now uses declarative metadata with pyproject.toml to create packages, using PyPA's flit project as a build backend. Patch by Adam Turner....
Read more >
sbt Reference Manual — Combined Pages
To leave sbt shell, type exit or use Ctrl+D (Unix) or Ctrl+Z (Windows). sbt:foo-build> exit. Compile a project. As a convention, we will...
Read more >
dev-manual.pdf
This version of the Yocto Project Development Manual is for the 1.5.4 release of ... Build your image if you cannot find a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found