-
Notifications
You must be signed in to change notification settings - Fork 12k
Building library gives error TS5060: Option 'paths' cannot be used without specifying '--baseUrl' option. #11258
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
Comments
@StephenFluin, the problem is that in Angular CLI 1.X.X the root |
@alan-agius4 : This is the issue when I am building my project inside my workspace. Let me know if you need more details. |
I fixed the issue by adding "baseUrl": "./" to the "compilerOptions" of tsconfig.json |
@jaq316 thank you 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)This bug has hit me a few times during live demos.
Area
Unsure of source, problem exhibits in CLI.
Versions
CLI starts on 1.x but moves to 6.x.
/home/stephen/.angular-config.json:
Repro steps
(use Yarn by default globally)
yarn global add @angular/cli@^1.0.0
ng new my-app
cd my-app
yarn add @angular/angular-cli
ng update @angular/angular-cli
ng update @angular/core
ng generate library my-shared-lib
ng build --project=my-shared-lib
The log given by the failure
Desired functionality
I'd like to see my library built by the CLI
The text was updated successfully, but these errors were encountered: