Skip to content

Support tsconfig paths without baseUrl #34533

@Janpot

Description

@Janpot

Describe the feature you'd like to request

Typescript supports paths without specifying baseUrl. This is interesting when you want to use some path aliases without allowing bare imports to resolve from the project root.

Describe the solution you'd like

next.js already supports paths with baseUrl. It could just follow what typescript does and resolve paths from the config location when baseUrl is not specified.

Describe alternatives you've considered

Configure baseUrl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions