This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

mqtt-bridge-mosquitto Cannot find module

Hello,
been trying to get Mosquitto MQTT Bridge working on EC2 (where mosquitto is running).
https://docs.nrfcloud.com/Guides/Messages/SetupMessageBridge/#message-bridge-setup
https://github.com/nRFCloud/mqtt-bridge-mosquitto

Other than the numerous @aws-cdk peer issues with yarn (somewhat fixable with npm),
there is another problem at yarn bridge-init <nRF Cloud api key> stating:

Error: Cannot find module '/home/ubuntu/mqtt-bridge-mosquitto/dist/scripts/init.js'

In package.json, at the top there is reference to /dist right away before the script,
so not sure why dist was not generated?

"name": "mqtt-bridge-mosquitto",
"version": "1.0.0",
"author": "Nordic Semiconductor ASA | nordicsemi.no",
"main": "dist/scripts/init.js",
"license": "UNLICENSED",
"scripts": {
"compile": "tsc",
"deploy": "yarn compile && cdk deploy",
"synth": "cdk synth",
"bridge-init": "node dist/scripts/init.js",
"deploy-demo": "yarn compile && cdk deploy -a dist/DemoStack.js"
},

Very few references on devzone of others running this utility except by reference.
https://devzone.nordicsemi.com/f/nordic-q-a/84003/can-not-connect-data-from-nrfcloud-to-node-red-over-mqtt/349785
https://devzone.nordicsemi.com/f/nordic-q-a/82083/how-to-write-data-directly-to-influxdb-cloud-without-passing-through-nrf-cloud-with-nordic-thingy91-using-ltev
https://devzone.nordicsemi.com/f/nordic-q-a/78967/storing-lte-m-data-on-aws-database/326743#326743

thank-you,

Parents Reply Children
Related