Skip to content

Conversation

@WaffleSoul4
Copy link
Contributor

The Bug

While using this crate, I encounered an error with my project's wasm build that went something like this:

Module not found: Error: Can't resolve 'env' in 'my-project/pkg'

Finding the source

After a little searching, I found this helpful issue on the wasm-bindgen repository. I used this tool (mentioned in the issue) on my project to attempt to find the source of the error, and the source was the instant crate.

Solution

In all regards, web_time seems to be superior to instant. Instant even mentions in their readme that the crate is unmaintained and web_time should be considered as an alternative.

@WaffleSoul4
Copy link
Contributor Author

Sorry, I accidentally added a second commit to bump egui versions to this PR. The only changes required for the migration was getting the fonts mutably from the context due to a simple api change.

@blitzarx1 blitzarx1 self-requested a review October 31, 2025 10:31
@blitzarx1
Copy link
Owner

@WaffleSoul4 I added commit which merges main here, so egui changes are up to date now as well.

Copy link
Owner

@blitzarx1 blitzarx1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks for addressing this issue.

@blitzarx1 blitzarx1 self-requested a review October 31, 2025 10:54
@blitzarx1 blitzarx1 merged commit cbf98f2 into blitzarx1:main Oct 31, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants