Skip to content

TypeError when accessing exported members inside namespaces in v2.6.0 #406

@Pixel998

Description

@Pixel998

Environment

Node v24.3.0
Jiti v2.5.1

Reproduction

namespace MyNamespace {
  export const value = 123;
}

console.log(MyNamespace.value);

Describe the bug

When trying to access any exported member inside a TypeScript namespace, I get the following error in v2.6.0:

TypeError: Cannot read properties of undefined (reading '<memberName>')

Additional context

Downgrading to v2.5.1 resolves the issue.

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