Angular-cli: @angular-cli 1.1.0 rc.1 not support baseUrl import ?

Created on 25 May 2017  路  4Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

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

Versions.


@angular/cli: 1.1.0-rc.1
node: 6.10.2
os: darwin x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0-rc.1
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3

Repro steps.


ng new angular-new-cli
yarn install
new until.ts in app/
this is until.ts content export const TEST = 'test';
in app.component.ts import { TEST } from 'app/until';

The log given by the failure.


ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve 'app/until' in '/Users/feng/ng/angular-new-cli/src/app'
@ ./src/app/app.component.ts 8:0-33
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

Desired functionality.


@angular-cli 1.1.0 rc.0 -> 1.1.0 rc.1 not support baseUrl import ?
if have multi-level directory
how to do more elegant

Mention any other details that might be useful.

regression bufix

Most helpful comment

I'm getting the same error having just upgraded to @angular-cli 1.0.5

1.0.4 is working fine.

Something here?
https://github.com/angular/angular-cli/commit/0f24e04#diff-75e7bcb889f70652f52a155809ca0c37R89

All 4 comments

I'm getting the same error having just upgraded to @angular-cli 1.0.5

1.0.4 is working fine.

Something here?
https://github.com/angular/angular-cli/commit/0f24e04#diff-75e7bcb889f70652f52a155809ca0c37R89

I have got this issue as well in my project, but it's look strange that, when I tried to reproduce this issue by creating new project, it doesn't show any error, and went well....

I'm using version 1.0.5

Seems like it is a regression on 1.0.4. I'll revert and do a re-release right away.

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