Closed
Description
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...
\
> fsevents@1.0.14 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
react-scripts@0.1.0 node_modules/react-scripts
└── fsevents@1.0.14 (nan@2.4.0)
Installing react and react-dom from npm...
react-dom@15.2.1 node_modules/react-dom
react@15.2.1 node_modules/react
├── object-assign@4.1.0
├── loose-envify@1.2.0 (js-tokens@1.0.3)
└── fbjs@0.8.3
(ua-parser-js@0.7.10, immutable@3.8.1, promise@7.1.1, core-js@1.2.7, isomorphic-fetch@2.2.1)
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
> on-call-buddy@0.0.1 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
Labels
No labels