-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Strange characters in source code for babael-standalone from unpkg.com #6976
Comments
Hey @lukaszewczak! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
This looks similar to #340. I think adding |
This is an issue with unpkg not sending correct headers. Just replace the unpkg babel link with jsDelivr link and it works: https://cdn.jsdelivr.net/npm/babel-standalone@6.26.0/babel.min.js |
ping @mjackson in case it's an unpkg issue. |
Thank you all, for answers. I use link from @MartinKolarik and it works. |
Thanks for the ping, @xtuc. I just pushed a change that forces all JavaScript served from unpkg to be served with It's pretty unusual for JavaScript to require utf-8 (unpkg has been running for 3 years now w/out it!) but this change should fix the problem for anyone who's using babel-standalone w/out |
@mjackson thanks for the fast fix 💯 |
Choose one: is this a bug report or feature request?
Bug
Hi,
I try to execute this simple example from this react course https://egghead.io/lessons/react-use-jsx-with-react, but unfortunately I receive some error (because of some strange characters in the source code) which makes it impossible to test a solutions.
Input Code
This is my whole example file
index.html
Babel/Babylon Configuration (.babelrc, package.json, cli command)
Simple script from
unpkg.com
Expected Behavior
To convert
jsx
intoReact.createElement
Current Behavior
Example not working, there is an error in the console:
When I opened directly file from https://unpkg.com/babel-standalone@6.26.0/babel.min.js, I saw this characters directly in the source code:
Possible Solution
Context
Try to do simple example from react course on https://egghead.io/lessons/react-use-jsx-with-react
Your Environment
Windows 10, Chrome 62.0.3202.94
The text was updated successfully, but these errors were encountered: