Hello, I'm trying to implement a simple compose-we...
# compose-web
a
Hello, I'm trying to implement a simple compose-web project, the idea is to convert an svg to xml using this library, but I'm seeing a lot of errors(please see thread), does anyone has a tutorial on how to implement this kind of library in Compose?
Here's the stacktrace
c
This library is not meant be be run is a browser but on a node environment.
a
😮, so there's no way to use it for this case?
c
As it reads and writes files, no. A browser does not have a “file” API as you see on your logs that “path” is not available.
Also
> Pre-requisite
>
Requires Java 8 or higher
So I guess under the hood is uses the Android SDK that Android studio uses to convert svg to xml
a
makes sense, thanks @Chrimaeon
m
Another question is why you want to do this conversion in a compose-web project. You can render SVGs in compose-web out of the box.
a
i want to convert the file online and read the xml to find some options on it, works on desktop and I wanted to add a web platform