[Error] imports[0] for react-transform-hmr does not look like React
See original GitHub issueIs 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:)
- Install react-native and android sdk as per official documents
- create new project with
react-native init TestProject
- start android 6 on emulator or connect to device (ive tried both and got the same result)
- run
react-native run-android
from the project directory
Expected Behavior
To see the bare project landing page
Actual Behavior
Reproducible Demo
Just follow the steps to reproduce without changing anything
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@yinchuanjiang i have switched to using flutter which has far better docs and a more responsive community.
How do you solve this problem? I’m using 0.55.3 and this is wrong.