Using npm packages on my zeppos app #329
-
Im trying to use xml2js on my zepp os app but im only getting build errors import parseString from "xml2js"; if i instead use const { parseString } = require("xml2js"); I don't get the errors but it doesn't work either, I'm guessing i can't use any npm packages that I install that are not from @zeppos but i need to use this one so any help is appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Our watches don't have node built-in, so it's impossible to run packages that weren't built for zos from the ground up. You have to find some alternative built in vanilla JS in order for it to work; and that alternative should be able to run in a low-ram environment, compared to The best bet would be to offload this to your smartphone. Run a node server with xml2js on it and communicate with it using ZML. |
Beta Was this translation helpful? Give feedback.
Our watches don't have node built-in, so it's impossible to run packages that weren't built for zos from the ground up. You have to find some alternative built in vanilla JS in order for it to work; and that alternative should be able to run in a low-ram environment, compared to
xml2js
.The best bet would be to offload this to your smartphone. Run a node server with xml2js on it and communicate with it using ZML.