Skip to content

npm start / npm run dev fail with "index.js: SyntaxError: Unexpected token import" #462

@brennen

Description

@brennen

Seems to happen for both npm start and npm run dev, even after npm run build:

/home/brennen/parse-server/src/index.js:14
import { GridStoreAdapter } from './Adapters/Files/GridStoreAdapter';
^^^^^^

SyntaxError: Unexpected token import
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/home/brennen/parse-server/bin/parse-server:3:19)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

I gather that this has to do with the version of index.js getting run here not getting transformed by Babel, but after that I'm a bit lost. I have a couple of other reports of this issue, so I think it's tripping up users.

Full debug log here: npm-debug.txt

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