grandstack

SyntaxError: Unexpected token { when compiling my node.js code

谁都会走 提交于 2021-02-10 16:59:14
问题 I'm getting the below error every time with the first 'import' when I trying to run grandstack neo4j graphql api app. PS C:\Users\grand-stack-starter-master\api> nodemon index.js [nodemon] 1.19.1 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node index.js src/index.js` C:\Users\grand-stack-starter-master\api\src\index.js:1 import { typeDefs } from "./graphql-schema"; ^ SyntaxError: Unexpected token { at Module._compile (internal/modules/cjs/loader.js

SyntaxError: Unexpected token { when compiling my node.js code

眉间皱痕 提交于 2021-02-10 16:59:05
问题 I'm getting the below error every time with the first 'import' when I trying to run grandstack neo4j graphql api app. PS C:\Users\grand-stack-starter-master\api> nodemon index.js [nodemon] 1.19.1 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node index.js src/index.js` C:\Users\grand-stack-starter-master\api\src\index.js:1 import { typeDefs } from "./graphql-schema"; ^ SyntaxError: Unexpected token { at Module._compile (internal/modules/cjs/loader.js