Skip to content

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

@cwing2019

Description

@cwing2019

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions