Skip to content

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


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

var mqtt = require('mqtt/dist/mqtt')
See also  License Key Formatting - Leetcode Challenge - Python Solution

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.