I am new to programming and started with tabris-js mobile app development framework for pure javascript. Tabris-js supports using npm modules an cordova plugins to extend.
I tried to import mqtt-js npm library into tabris-js app. Locally installed the library to path; project_folder/node_modules/mqtt/mqtt.js and added dependency in package.json.
When importing the module:
const mqtt = require('mqtt');
The error is: could not parse the module .../mqtt.js
Isn't mqtt-js compatible with tabris-js or is this a global issue?