Skip to content

Won't run when imported, fine in unit test "HTTP module imported before HTTPParser was bound" #9

@TaylorDale

Description

@TaylorDale

If I clone the repo and run npm test, works perfectly fine. However if I import it to my own project (Issue occurs upon import - doesn't even get to run code) I get the following error:
image

Attempting to run the simple example from the unit test in my own project:
import { AuthRequest, Caster, NtripHTTPParser, NtripTransport, } from '@ntrip/caster'; const caster = new Caster({ authManager: { async authenticate(auth: AuthRequest) { return { ...auth, authenticated: true }; }, }, }); caster.addTransport(NtripTransport.new({ port: 2101 }));

Results in this error.

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