Git Product home page Git Product logo

Comments (6)

AlphaDork avatar AlphaDork commented on June 4, 2024

Also I realized that 'react-hot' may have been the issue. Removing it and leaving 'babel' as the only loader for jsx? files - the issue persists. So it does look like Babel is the culprit.

from asynquence.

loganfsmyth avatar loganfsmyth commented on June 4, 2024

Saw @getify's tweet, so I figured I'd help since Sebastian has plenty to do. Ã is what you get when you decode ø as Latin1 instead of UTF8. If you look in the bundle on-disk, do you still see Ã? Wondering if perhaps you are serving your webpack bundle with the wrong encoding?

I don't know of any recent changed in Babel that might have introduced a code-generation issue, though I can't specifically discount it. Running the file through the Babel CLI returns the ø properly from what I can see.

from asynquence.

AlphaDork avatar AlphaDork commented on June 4, 2024

Exactly - it encodes as two chars 'Ã.' - my presets are es2015,stage-0, and react. Is there a way I can specify a the proper encoding in Babel? I've been looking but haven't found anything yet...

from asynquence.

AlphaDork avatar AlphaDork commented on June 4, 2024

It looks like it's a webpack issue -- webpack/webpack#859 - this issue has been around for a while. Fortunately the workaround is simple. LOL!

from asynquence.

AlphaDork avatar AlphaDork commented on June 4, 2024

The root of the issue is Windows-7. It has set the encoding on the files in all node packages as Windows-1252. Brilliant. This clearly isn't a bug in any of the packages per se, just a feature of the OS.

from asynquence.

AlphaDork avatar AlphaDork commented on June 4, 2024

I am closing this because it's a just a cautionary tale more than a bug. Thank you for your patience!

from asynquence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.