We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I figured i should update to the newest svgson, but im not able to get it to work. I simply used yarn add svgson.
yarn add svgson
Code:
let json; try { json = await svgson.parse(optimized); }catch (error) { console.log(error); }
Error:
TypeError: _svgson.default.parse is not a function
My package.json shows "svgson": "^3.0.0"
"svgson": "^3.0.0"
Any ideas? :)
The text was updated successfully, but these errors were encountered:
Hi @SnooHD It's more a documentation issue.
If you are using es or cjs, svgson is exported as default, for umd should work as in readme.
es
cjs
svgson
umd
Recap, the following should work:
import svgson from `svgson` json = await svgson(optimized) // or import { parse } from `svgson` json = await parse(optimized)
Let me know in any case. And I have to fix docs asap.
Sorry, something went wrong.
Yes import {parse} from 'svgson'; works fine. Thank you kindly!! <3
import {parse} from 'svgson';
a4df843
Speciy useage for umd different on es and cjs
c8ed58d
closes #12
No branches or pull requests
Hello,
I figured i should update to the newest svgson, but im not able to get it to work.
I simply used
yarn add svgson
.Code:
Error:
My package.json shows
"svgson": "^3.0.0"
Any ideas? :)
The text was updated successfully, but these errors were encountered: