microsoft / fluentui-system-icons

Fluent System Icons are a collection of familiar, friendly and modern icons from Microsoft.
https://aka.ms/fluentui-system-icons
MIT License
5.65k stars 498 forks source link

Flutter (3.13.0) web build fails with `Codepoint 32 not found in font` #628

Open josh-burton opened 10 months ago

josh-burton commented 10 months ago

Related issue filed in the Flutter repo: https://github.com/flutter/flutter/issues/132711

Since updating to Flutter 3.13.0, my web release builds are now failing.

This seems to be caused by using this package, but I'm not certain if it's only this package or all custom font packages.

The error message when building is:

Codepoint 32 not found in font, aborting.

Target web_release_bundle failed: IconTreeShakerException: Font subsetting failed with exit code 255.
azinmapar commented 10 months ago

any solution??

azinmapar commented 10 months ago

downgrading flutter solved my problem

jerrypaulsam commented 10 months ago

Anyone got a proper solution?

spydon commented 10 months ago

The solution is landing in a Flutter hotfix version very soon: https://github.com/flutter/flutter/issues/132711#issuecomment-1684152978

mhmzdev commented 10 months ago

Facing same issue The web app is on production and I had to do some hotfixes, I'm hating myself for updating to latest SDK!!

A temporary solution was to pass --no-tree-shake-icons flag with flutter build web --release for now.

flutter build web --release --no-tree-shake-icons
RoyalBosS-Ayush commented 3 months ago

Any solution? Facing same!

spydon commented 3 months ago

Any solution? Facing same!

It should have been solved, which Flutter version are you on?

josh-burton commented 3 months ago

Also note that if you are using fluent icons on Flutter web, you should really use my branch from this PR: https://github.com/microsoft/fluentui-system-icons/pull/642

This enables true tree shaking of the icons. Without this the fluent font files will be quite large.

RoyalBosS-Ayush commented 1 month ago

Any solution? Facing same!

It should have been solved, which Flutter version are you on?

3.22.0