Skip to content

SyntaxError after following the setup instructions. #179

@dreadwail

Description

@dreadwail

I followed the instructions in the README and ran into a SyntaxError right out of the gate. It seems like it's not interpretting as ES6:

hackday  $ create-react-app on-call-buddy
Creating a new React app in /Users/blakey/code/hackday/on-call-buddy.

Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
\
> [email protected] install /Users/blakey/code/hackday/on-call-buddy/
node_modules/react-scripts/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/blakey/code/hackday/on-call-buddy/
node_modules/react-scripts/node_modules/fsevents/lib/binding/
Release/node-v14-darwin-x64/fse.node" is installed via remote

[email protected] node_modules/react-scripts
└── [email protected] ([email protected])
Installing react and react-dom from npm...
[email protected] node_modules/react-dom

[email protected] node_modules/react
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] 
([email protected], [email protected], [email protected], [email protected], [email protected])

Success! Created on-call-buddy at /Users/blakey/code/hackday/on-call-buddy.

Inside that directory, you can run several commands:
  * npm start: Starts the development server.
  * npm run build: Bundles the app into static files for production.
  * npm run eject: Removes this tool. If you do this, you can’t go back!

We suggest that you begin by typing:
  cd /Users/blakey/code/hackday/on-call-buddy
  npm start

Happy hacking!
hackday  $ cd on-call-buddy/
on-call-buddy  $ npm start
> [email protected] start /Users/blakey/code/hackday/on-call-buddy
> react-scripts start

/Users/blakey/code/hackday/on-call-buddy/node_modules/react-scripts/scripts/start.js:23
var isSmokeTest = process.argv.some(arg =>
                                        ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions