svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.04k stars 1.07k forks source link

Uncaught TypeError: Object function Array() { [native code] } has no method 'from' -> svg.min.js:2 #1122

Closed coolmatt closed 1 year ago

coolmatt commented 4 years ago

Hi,

This happens with an old Chrome (31.0.1650.63)... any chance it'll be fixed ?

Thanks matt.

Fuzzyma commented 4 years ago

Try to include the polyfills from the dist folder or try the current master. But generally spoken old browsers are not supported because our target browsers are specified as

    "last 1 version",
    "> 0.25%",
    "not maintained node versions",
    "not dead"

You can look up what that means on browserslist.

However, you can just build svg.js yourself with your own targets which will then have the polyfills you need