mmertama / FigmaQML

Converts Figma designs to QML/QtQuick
MIT License
200 stars 38 forks source link

Parse error #12

Closed kodarn closed 5 months ago

kodarn commented 1 year ago

FigmaQML have helped me a great deal in converting graphical elements to QML. Thank you for your dedication and hard work on FigmaQML.

Using the attached file, FigmaQML fails with a error message which could be somewhat more helpful. Please let me know if you require any further information or if there is anything else I can do to assist in resolving this issue. I appreciate your attention to this matter and look forward to a resolution.

Screengrab

The Figma-file is attached to this bugreport:

ContactWindow.fig.gz

mmertama commented 11 months ago

Looks like service error - please retry. I succeeded just few minutes ago (Mac native build)

mmertama commented 11 months ago

Looks like CORS issue (see: https://simplelocalize.io/blog/posts/what-is-cors/)

Below is the error log captured: - I have no idea how to fix in FigmalQML code. Probably WebAssembly version wont work within too big Figma documents. Please try the native FigmaQML - I havent see such issue there.

self.moduleConfig.printErr @ qtloader.js:370 qtloader.js:370 Requested MSAA sample count 8 but supported sample counts are QList(1) , using sample count 1 instead self.moduleConfig.printErr @ qtloader.js:370 FigmaQML.html:1 Access to XMLHttpRequest at 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/7001d767-f9e2-4656-bde8-6fed726bd164' from origin 'https://mmertama.github.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. qtloader.js:370 QNetworkAccess: got HTTP status code 0 which is not expected from url: "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/7001d767-f9e2-4656-bde8-6fed726bd164" self.moduleConfig.printErr @ qtloader.js:370 figma-alpha-api.s3.us-west-2.amazonaws.com/images/7001d767-f9e2-4656-bde8-6fed726bd164:1 Failed to load resource: net::ERR_FAILED qtloader.js:370 qml: Network error: 399, Not Found