Skip to content

[Bug] CLI launched but 1 error of code when compiling #29

Closed
@juanmateu2

Description

@juanmateu2

Version

1.1.0

Reproduction link

#28

Operating System

MacOS High Sierra

Device

Macbook PRO 2011

Browser & Version

Versión 116.0.5845.187

Steps to reproduce

Initial launch of the Creative Tim package, installed, npm, and expo. CLI started in the directory of the project, compiling error

What is expected?

To launch in the browser the initial template app

What is actually happening?

error compiling.
ERROR in ./node_modules/expo/AppEntry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
/Users/juanmateumullor/Documents/XPATS/soft-ui-react-native-v1.1.0/node_modules/babel-preset-expo/node_modules/metro-react-native-babel-preset/src/configs/main.js:154


Solution

Additional comments

Terminal cut&paste of error


› Press a │ open Android
› Press i │ open iOS simulator
› Press w │ open web

› Press r │ reload app
› Press m │ toggle menu

› Press ? │ show all commands

› Open in the web browser...
› Press ? │ show all commands
[object Object]
ERROR in ./node_modules/expo/AppEntry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
/Users/juanmateumullor/Documents/XPATS/soft-ui-react-native-v1.1.0/node_modules/babel-preset-expo/node_modules/metro-react-native-babel-preset/src/configs/main.js:154
const isVersion = typeof options?.enableBabelRuntime === "string";
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:931:16)
at Module._compile (internal/modules/cjs/loader.js:979:27)

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