Skip to content

[bug] cannot import Aedes when using TypeScript moduleResolution set to "node16" #1082

@ZZwatermelon

Description

@ZZwatermelon

System Information

  • Aedes: 1.0.1
  • NodeJS: 22.22.0
  • OS: Ubuntu 22.04.5
  • Arch: x86_64

Describe the bug
When TypeScript moduleResolution is set to "node16", I am unable to import items in the same way as the examples:
import { Aedes } from 'aedes'
and instead get the following typescript error:
Module '"aedes"' has no exported member 'Aedes'.

To Reproduce
Steps to reproduce the behavior:

  1. npm install aedes
  2. set TypeScript moduleResolution to "node16"
  3. Attempt to import Aedes

Expected behavior
Aedes should be properly imported.

Additional context
The issue is resolved if you switch moduleResolution to "bundler", but I presume this is still a bug as #1081 states it fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions