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:
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 }));
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:
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.