ais-one/cookbook

Compilation errors with npm run dev

flaird opened this issue · 3 comments

I'm getting Syntax error for the spread operator after installing and running npm run dev. After installing the "babel-plugin-transform-object-rest-spread" I'm now getting Unexpected token error for the import statements for the component imports.

What am I doing wrong?

what version of nodeJS are you using?

there is one more plugin you need to add for handling "import", please see my article

https://codeburst.io/apollo-graphql-server-express-google-cloud-function-serverless-framework-dbb6b5cf4bb3

Search for the text... Babel polyfill dependencies, for using import/export and async/await

It would be best if you used NodeJS 8 or better...

closing due to no further comment