Angular-cli: changed `root` property in .angular-cli.json doesn't work properly

Created on 27 Mar 2017  路  2Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0
node: 6.9.1
os: linux x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0

Repro steps.

in .angular-cli.json

"root": "src/angular"

The log given by the failure.

src/angular/app/app.component.ts (1,33): Cannot find module '@angular/core'.
src/angular/app/app.component.ts (7,14): Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

...

Desired functionality.

Working

Mention any other details that might be useful.

in src/tsconfig.app.json there is "extends": "../tsconfig.json" ... it should not have relative value

Most helpful comment

If you change the root value manually, you also need to change relative paths such as the extends in src/tsconfig.app.json. We can't do that for you when you change values manually.

If you want to make a new app with a different root directory (ng new my-proj --source-dir=src/angular), we change all values for you.

All 2 comments

If you change the root value manually, you also need to change relative paths such as the extends in src/tsconfig.app.json. We can't do that for you when you change values manually.

If you want to make a new app with a different root directory (ng new my-proj --source-dir=src/angular), we change all values for you.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sysmat picture sysmat  路  3Comments

hartjo picture hartjo  路  3Comments

5amfung picture 5amfung  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments