question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with babel

See original GitHub issue

I have babel setup inside a create-react-app app I started about a year ago. I had "react-images": "^0.5.17", in my package.json, so when you released the new 0.5.18 a couple of hours ago, I pulled it down, at which point babel started failing to build as it was including the raw ES6 of your library instead of transpiling it.

Would give more information if I could but don’t know what would be helpful?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

3reactions
jasonnuttercommented, Jul 19, 2018

We are getting the following error now in our frontend app that uses react-images:

/node_modules/react-images/lib/Lightbox.js:9
import PropTypes from 'prop-types';
^^^^^^

SyntaxError: Unexpected token import
1reaction
neptuniancommented, Jul 20, 2018

@tomhalley it should be okay now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · babel/babel - GitHub
Babel is a compiler for writing next generation JavaScript. - Issues · babel/babel.
Read more >
The Babel problem and the dangers of multilingualism
Bottom line: the Babel problem is bad enough without encouraging it. Other Western countries that slipped up and allowed mass immigration are ...
Read more >
Solving Babel issue in Ejected React Application - Medium
It throws an Unexpected token syntax error. The issue is that Babel is no longer able to understand JSX (HTML like) syntax inside...
Read more >
Problem with babel-loader and version, also ... - Stack Overflow
1 Answer 1 · Delete package-lock.json (not package.json!) and/or yarn. · Delete node_modules in your project folder. · Remove "babel-loader" from ...
Read more >
What was the problem at Babel? - Christianity Stack Exchange
The "problem at Babel" was pride, arrogance, and an unwillingness to follow God's command to replenish the earth after the flood.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found