-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
new
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
v16
Description
The tsconfig.json file had an option in v16: "baseUrl" = "./" by default. But now in v17, this option is no longer there.
Without it, the import statement in TypeScript files would change from
import { SharedModule } from 'src/app/shared';
to
import { SharedModule } from '../../shared';
In some cases, the nested folders will increase the path to be many ../../../ instead of simply src/app/shared.
It becomes a pain to manage the relative path.
The baseUrl option is removed in this commit 419b5c1
related to #18834
There must be a reason for you to remove it, as the commit message says "this also enables better auto-import suggestions". Could you explain it more?
From the screenshot below, it only says that "can be", which doesn't mean "should not".
Minimal Reproduction
related to #18834
Exception or Error
ref. description session

Your Environment
Angular CLI: 17.0.5
Node: 20.9.0
Package Manager: npm 9.8.1
OS: win32 x64
Anything else relevant?
d
