★ wanayoo — archive 1999 https://github.com/angular/angular-cli/issues/5679Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed `root` property in .angular-cli.json doesn't work properly #5679

Closed
alexanderPastornicky opened this issue Mar 27, 2017 · 2 comments
Closed

Comments

@alexanderPastornicky
Copy link

@alexanderPastornicky alexanderPastornicky commented Mar 27, 2017 •

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

@filipesilva
Copy link
Member

@filipesilva filipesilva commented May 3, 2017

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.

@filipesilva filipesilva closed this May 3, 2017
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Sep 7, 2019

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.