Skip to content
New issue

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

For Sketch version 97, keep getting error message while spec exporting #103

Open
rachelkim0507 opened this issue Jun 7, 2023 · 5 comments

Comments

@rachelkim0507
Copy link

Since Sketch had been updated to V.97, I keep getting error messages like below.

Error processing layer CA certificates are. TypeError: this._object.fixGeometryWithOptions is not a function. (In 'this._object.fixGeometryWithOptions(0)', 'this._object.fixGeometryWithOptions' is undefined)

Bold text in** is text layer. It wasn't happened before updating Sketch version.
My macOS is Monterey by the way.

@raghavendra-kesari
Copy link

raghavendra-kesari commented Jun 8, 2023

Hi all,
We are also facing similar crash with Sketch97 June-06-2023 release.

Mac OS = Monterey 12.3.1 version

Logs:
Possible Unhandled Promise Rejection: TypeError: this._object.fixGeometryWithOptions is not a function. (In 'this._object.fixGeometryWithOptions(0)', 'this._object.fixGeometryWithOptions' is undefined)
at value (/private/var/folders/b1/l7tmflf94tqb69yc66q_wv4m0000gn/T/AppTranslocation/BF1DC6BF-2906-4E81-A443-CE47A480840E/d/Sketch_97.173.app/Contents/Resources/SketchAPI_dom.js:1:43487)

Thanks.

@Jeevs-s
Copy link

Jeevs-s commented Jun 19, 2023

Hi all,
I am experiencing the same issue too - Sketch 97 06/23 release + macOS Ventura 13.4

image

Thanks.

Edit: I have narrowed the cause of the issue down to text boxes that contain 2 or more different colours in them. E.g. A text box that contains 2 words where 1 word is blue and the other word is black will cause the error.

@Yebastabak
Copy link

Hey,

We are experiencing the almost same issue too in 97.2. Except the spec exporting all functions are giving the error.
Screenshot 2023-07-14 at 10 20 27

@Jeevs-s
Copy link

Jeevs-s commented Jul 14, 2023

I recently found one of the causes of the error - If a text box contains text that uses more than 1 colour I am unable to export it. For example:
image

As a rough workaround, I am having to split the text into 2 different text boxes, with each box containing only one font colour.

@rodionovd
Copy link

For those wondering, all of the errors mentioned in this thread are caused by various Sketch API bugs in Sketch 97.x. The first one ("fixGeometryWithOptions is not a function") has been fixed in 97.1 update some time ago, but the rest are still there as of version 97.2.

I've reported the most obvious problem on the Sketch Forum and provided a link to the fixed version of the plugin that (AFAIK) works as expected with 97.x. Feel free to give it a try or just wait until Sketch 98 is out with all the fixes.

And in case you're looking for the source code changes I've made – see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants