Skip to content
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

galio-starter-kit App.js: Support for the experimental syntax 'jsx' isn't currently enabled #232

Open
cwing2019 opened this issue Sep 26, 2020 · 1 comment

Comments

@cwing2019
Copy link

Describe the bug
A clear and concise description of what the bug is.

expo r -c and run web
shows:
「wds」: Project is running at http://0.0.0.0:19006/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\Users\WIN\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo\webpack-config\web-default
i 「wds」: 404s will fallback to /
web Failed to compile.
C:/Users/WIN/galio-starter-kit/App.js
SyntaxError: C:\Users\WIN\galio-starter-kit\App.js: Support for the experimental syntax 'jsx' isn't currently enabled (8:7):

6 | render() {
7 | return (

8 | <View style={{ flex: 1 }}>
| ^
9 |
10 |
11 |

Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'

To Reproduce
Steps to reproduce the behavior:

  1. cmd and cd galio-starter-kit/
  2. npm install
  3. fix the char problem here :Expo fails to start the project: error Invalid regular expression: /(.*\\__fixtures__ expo/expo-cli#1074

\node_modules\metro-config\src\defaults\blacklist.js

var sharedBlacklist = [
/node_modules[/\]react[/\]dist[/\]./,
/website/node_modules/.
/,
/heapCapture/bundle.js/,
/./tests/./
];
change to:

var sharedBlacklist = [
/node_modules[/\]react[/\]dist[/\]./,
/website/node_modules/.
/,
/heapCapture/bundle.js/,
/./tests/./
];

  1. expo r -c and result comes

Expected behavior
ofcourse running ok of the galio-starter-kit

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: android
  • Type of device: expo android/ chorome
  • OS: win10
  • React-Native version: react-native-cli: 2.0.1
    react-native: 0.59.8
  • Expo version: 3.27.10

Additional context
Add any other context about the problem here.

@cwing2019
Copy link
Author

xpo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
Some of your project's dependencies are not compatible with currently installed expo package version:

  • react-native-svg - expected version range: 9.9.5 - actual version installed: ^9.12.0
    Your project may not work correctly until you install the correct versions of the packages.
    To install the correct versions of these packages, please run: expo install [package-name ...]
    Starting Metro Bundler.
    Your JavaScript transform cache is empty, rebuilding (this may take a minute).

exp://192.168.0.105:19000

when I scan qr code and run in android

it crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant