Unsolved How do I import a node package file into QML
-
There does not seem to be clear instructions on how to do this. A node pacgage has a package-lock.json file but how do I use it's .js files in my QML project?
-
You can import js files this way: https://doc.qt.io/qt-5/qtqml-javascript-imports.html
The javascript implementation in QML is not compatible with node. I think there are objects a node project would expect, but are not implemented. At the least the version in 5.x is not. Not sure what 6.x has in it.