Skip to content

Unable to resolve module `url` from `node_modules/mqtt/lib/connect/index.js – react native error – How to fix?

Advertisements

Change your mqtt require statement to this, in your code.

var mqtt = require('mqtt/dist/mqtt')

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.