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.

[Error] imports[0] for react-transform-hmr does not look like React

See original GitHub issue

Is this a bug report?

Yes

It is the same as #17112 but on an android device and since that was closed without a proper solution, creating another issue. On following the basic installation process and running native-react run-android I got this error on 3 different devices,

imports[0] for react-transform-hmr does not look like React

Tried it on two devices with latest android connected via usb and on an emulated android 6

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: Linux 4.4 Node: 7.4.0 Yarn: 0.27.5 npm: 5.5.1 Watchman: Not Found Xcode: N/A Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.51.0 => 0.51.0

Target Platform: Android (marshmallow)

Steps to Reproduce

(Write your steps here:)

  1. Install react-native and android sdk as per official documents
  2. create new project with react-native init TestProject
  3. start android 6 on emulator or connect to device (ive tried both and got the same result)
  4. run react-native run-android from the project directory

Expected Behavior

To see the bare project landing page

Actual Behavior

image

Reproducible Demo

Just follow the steps to reproduce without changing anything

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
connectkushalcommented, May 10, 2018

@yinchuanjiang i have switched to using flutter which has far better docs and a more responsive community.

0reactions
yinchuanjiangcommented, May 1, 2018

How do you solve this problem? I’m using 0.55.3 and this is wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - react-transform-catch-errors does not look like a ...
I'm working on a react project and we are using react starter kit. I am new to the project and when I clone...
Read more >
react-hot-loader - npm
As of version 4, React Hot Loader requires you to pass your code through Babel to transform it so that it can be...
Read more >
[Solved]-react-transform-catch-errors does not look like a ...
Coding example for the question react-transform-catch-errors does not look like a React component-Reactjs.
Read more >
Babel-plugin-react-transform NPM | npm.io
This technology exists to prototype next-generation React developer experience. Please don't use it blindly if you don't know the underlying technologies well.
Read more >
The best webpack configurations for React applications
Code to be run in the terminal will be written like $ npm install ... src/App.js // Empty file // src/index.js import React...
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