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.

Failed to compile

See original GitHub issue

After installing both needed packages I’m getting this error:

Failed to compile
./node_modules/react-native-web-maps/src/index.js
Module parse failed: Unexpected token (6:50)
You may need an appropriate loader to handle this file type.
| import Marker from './Marker';
| 
| const GoogleMapContainer = withGoogleMap(props => <GoogleMap {...props} ref={props.handleMapMounted} />);
| 
| class MapView extends Component {
This error occurred during the build time and cannot be dismissed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
stefanjungcommented, May 17, 2018

I have the same issue. Any new solutions?

2reactions
tdoniacommented, Feb 8, 2018

hi all! thanks @AuroreM for this project. here’s an example repo from a vanilla create-react-app install to this recreate error:

https://github.com/likestripes/super-couscous

./node_modules/react-native-web-maps/src/index.js
Module parse failed: Unexpected token (6:50)
You may need an appropriate loader to handle this file type.
| import Marker from './Marker';
| 
| const GoogleMapContainer = withGoogleMap(props => <GoogleMap {...props} ref={props.handleMapMounted} />);
| 
| class MapView extends Component {
This error occurred during the build time and cannot be dismissed.

I’ll followup if I’m able to track down any information on how/why/what might have changed to create this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack failed to compile - Stack Overflow
1 Answer 1 · inside index.js you are importing a css file and webpack is unable to handle it, this is what the...
Read more >
Why my React App Failed To Compile - Timonwa's Notes
Bugs and Errors will come in different shapes and sizes, styles and formats you never expect, causing your react app not to compile....
Read more >
Failed to compile error when running on dev server locally ...
After freshly run create-react-app demo cd ./demo npm start Then modify App.css. Console shows Failed to compile. Error in .
Read more >
Failed to compile. Module not found: Error: - Support
Having this error building a react (typescript) app. The error begins at timestamp 5:09:47 PM 5:09:05 PM: Build ready to start 5:09:07 PM: ......
Read more >
[XSIM 43-3410] Failed to compile one of the generated C files.
ERROR: [XSIM 43-3410] Failed to compile one of the generated C files. Hello,. I just tried to run a simple simulation but it...
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