Skip to content

Aliases are not resolved in export specifiers #463

@cernymatej

Description

@cernymatej

Environment

  • Operating System: Darwin
  • Node Version: v22.17.0
  • Nuxt Version: -
  • CLI Version: 3.28.0
  • Nitro Version: -
  • Package Manager: pnpm@10.13.1
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/mickosi/nuxt-issue2

Describe the bug

Creating this issue based on one created in the Nuxt repo - nuxt/nuxt#32911

After some investigation I noticed that aliases in export specifiers are not resolved, which causes the issue mentioned by the user.

This means that the following doesn't work:

shared/
  types/
    index.ts
    test.ts
// index.ts
export * from '#shared/types/test'
// test.ts
export interface Test { }

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions