Skip to content

Issue with Node 8 - SyntaxError: Unexpected token ... in browser #804

Closed
@gianpaj

Description

@gianpaj
  • You're running version >=1.1.2 of Parse Dashboard.

  • You're running version >=2.6.5 of Parse Server (using docker image from Docker hub)

  • You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

Using latest LTS Node release.

node --version
v8.9.0

npm --version
5.5.1

Steps to reproduce

Using the latest git repo from master or downloading from npm as global cli:

$ npm start

> [email protected] start /Users/gianfranco/temp/parse-dashboard
> node ./Parse-Dashboard/index.js

Iconsfolder at path: /Users/gianfranco/temp/parse-dashboard/Parse-Dashboard/icons not found!
The dashboard is now available at http://0.0.0.0:4040/
$ parse-dashboard --appId snowflake --masterKey Master --serverURL "http://localhost:1337/parse" --appName optionalName
The dashboard is now available at http://0.0.0.0:4040/

Logs/Trace

In the browser Dev console you get:

Uncaught SyntaxError: Unexpected token <

Looks like the JS bundle is returning an HTML webpage <script src="/bundles/dashboard.bundle.js"></script> instead of the JS file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions