vendredi 26 août 2016

mern.io: server.js Unexpected token

I'm trying to build a simple app using mernio:

mern init myApp
cd myApp
npm install
npm start

I got the following error:

/Users/hazemhagrass/workspace/nodejs/vi_mern_server/node_modules/babel-core/lib/transformation/file/index.js:573 throw err; ^

SyntaxError: /Users/hazemhagrass/workspace/nodejs/vi_mern_server/server/server.js: Unexpected token (125:10) 123 | .then(() => { 124 |
const initialView = renderToString(

125 | | ^ 126 | 127 | 128 |

enter image description here




Aucun commentaire:

Enregistrer un commentaire