-
Notifications
You must be signed in to change notification settings - Fork 13
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
MsdfGenerator issue on AWS CodeBuild CI/CD platform #125
Comments
@tuncayyildirtanuk Thanks for this report. From what I can tell, this error seems to be generated by the msdf-generator package and not per se by Blits. Obviously the Blits provided vite plugin is your gateway into this package, so it's still a valid issue to be aware of from the Blits perspective. As an immediate solution / workaround, you could place the generated msdf font files (png and json) into your publics/fonts folder and reference those in the launch settings. That way the msdf generation step is skipped all together. As for the error itself, it seems like a similar one that's been reported here: lightning-js/msdf-generator#5 |
Yes it is same issue like lightning-js/msdf-generator#5 Node version is 18.19.0 Also I guess minimum node version might be |
You should be able to leave your font launch setting the same, just placing the generated json and png file in the correct location alongside your ttf should be enough. Alternatively you can specify the location to the json file and the png file explicitly, like this:
|
Ah, I don't think you can have 2 families with the same name in your fonts config. If you rename the msdf font to a different family name, it should work I think. |
As for the font generation error, it seems like this is related to the nodeJS version (lightning-js/msdf-generator#5 (comment)) |
When configuring Vite via blitsVitePlugins, I encountered the following issue exclusively on the AWS CodeBuild platform.
As a workaround, I used only the preCompiler and temporarily removed the msdfGenerator.
Should we include msdfGenerator when building a Blits app?
The text was updated successfully, but these errors were encountered: