Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to resolve module url from `node_modules/mqtt/lib/connect/index.js #1020

Closed
pavankumarkl opened this issue Dec 16, 2019 · 6 comments
Closed

Comments

@pavankumarkl
Copy link

Is this the library issue, do I have to install any other module?

@pavankumarkl
Copy link
Author

got it, had to change import from 'mqtt/dist/mqtt' instead of ''mqtt'

@SignDawn
Copy link

It's a way, but it loses the type prompt. Is there a better way?

@ashiqdey
Copy link

Just use this package instead which is build version of mqtt 4.3.7

@ErickGiffoni
Copy link

Just use this package instead which is build version of mqtt 4.3.7

Didn't work out for me since I'm using typescript and the precompiled-mqtt does not have a @types/precompiled-mqtt yet

@Frtrillo
Copy link

It's a way, but it loses the type prompt. Is there a better way?

It works but have same issue, plus a suggestion that needs a declaration .d.ts from VSCode.

@simonmysun
Copy link

solved here. hope it helps.

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

No branches or pull requests

6 participants