Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a typescript project sample #78

Open
bcopy opened this issue Jan 26, 2023 · 2 comments
Open

Consider adding a typescript project sample #78

bcopy opened this issue Jan 26, 2023 · 2 comments

Comments

@bcopy
Copy link

bcopy commented Jan 26, 2023

Hi,
I cannot seem to be able to import Musquette in my Typescript project (Node v16, based on https://www.npmjs.com/package/@gjuchault/typescript-library-starter)

If I add these lines to the test :

import { MQTTSubject } from 'musquette'

let mqtt = new MQTTSubject(`ws://localhost:9001`)

I get :

TypeError: Cannot read property 'prototype' of undefined

Are there recommended TS options to make it work ?

@martenbiehl
Copy link
Owner

Hi bcopy,

thank you for filing the issue. I haven’t actively used this library for some time. Let me investigate!

Best
Marten

@bcopy
Copy link
Author

bcopy commented Feb 25, 2023

Hi,
I tried switching to a simpler setup, just essential jest and typescript support, but the result is always the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants