mathieudutour / import-svg-as-artboard

Import SVG files as Artboards.
24 stars 10 forks source link

Plugin not working with latest Sketch version #18

Closed Nummer5lebt closed 1 year ago

Nummer5lebt commented 2 years ago

My loved plugin is not working with latest sketch update Version 85.1 (141321).

groenroos commented 2 years ago

I have the same problem - no error message or anything.

pixelpanik commented 2 years ago

Sketch DevTools gives the following error:

MOJavaScriptException: TypeError: s.graph().width is not a function. (In 's.graph().width()', 's.graph().width' is undefined) my-command.js:37:706 forEach [native code] my-command.js:13:1155 my-command.js:37:305 __skpm_run my-command.js:45:121 __skpm_run [native code]

Would be lovely if someone can fix this. Thanks in advance!

jazzybeat commented 2 years ago

I tried in v92 with no luck. I would love to have this plugin back. It was very useful when importing icons.

ErwinOtten commented 2 years ago

I would also love to have this feature back. Does anyone has an alternative solution?

ErwinOtten commented 2 years ago

Workaround here: https://github.com/ErwinOtten/import-svg-as-artboard. Requires manual input for desired artboard width and height.

MoSyz commented 1 year ago

Sadly, it does not work for 94.1 :( Please fix this needed plugin.

mathieudutour commented 1 year ago

happy to accept a PR that fixes it

mathieudutour commented 1 year ago

Fixed by #23