Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windows: UnicodeDecodeError: 'charmap' codec can't decode byte... when loading bundle.js #1173

Unanswered
stevej2608 asked this question in Problem
Discussion options

I'm developing a custom JS component. When I test the component it works fine on Linux but when I test on Windows I get UnicodeDecodeError: 'charmap' codec can't decode byte'.., It happens when the bundle is being loaded.

The problem is that fixed by adding utf-8 encoding to loader.

./reactpy/web/utils.py#L31

 export_names, references = resolve_module_exports_from_source(
 file.read_text(encoding="utf-8"), exclude_default=is_re_export
 )
You must be logged in to vote

Replies: 1 comment

Comment options

Would be great if you could PR a solution alongside a regression test.

New issue created:

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /