Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token T in JSON at position 0 #95

Open
sward13 opened this issue Oct 4, 2017 · 5 comments
Open

Unexpected token T in JSON at position 0 #95

sward13 opened this issue Oct 4, 2017 · 5 comments

Comments

@sward13
Copy link

sward13 commented Oct 4, 2017

I'm trying to set up a new instance on OSX, and am getting the following error when running the audiogram. Any ideas on where to go from here?

Error in settings/themes.json:
SyntaxError: Unexpected token T in JSON at position 0

@Charmelsippio
Copy link

I'm getting the same exact error on OSX Sierra.

@jscruggs
Copy link

jscruggs commented Oct 8, 2017

I'm getting this same error on OS X Sierra 10.12.6
Completely fresh install following the instructions in the readme
tried both Node 6.11.4 and 8.6.0
FYI: error listed in the title is for Chrome
In Firefox it is: "Error in settings/themes.json:
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data"
In Safari it is: "No themes found in settings/themes.json."

@agvwrites
Copy link

this is happening to me too, on Chrome — and OS X Yosemite 10.10.5

@mkiser
Copy link

mkiser commented Oct 27, 2017

Did y'all look at #96?

In package.json, I changed d3 to "d3": "4.10.0" and did an npm install and now it works.

@Charmelsippio
Copy link

Hi all,

Ok. I had to do a combo of 2 solutions to get it working.

  1. In package.json, change d3 to "d3": "4.10.0"
  2. In bundle.js, line 134, change d3.json("/settings/themes.json", function(err, themes){ to
    d3.json(window.location.protocol + "//" + window.location.host + "/settings/themes.json", function(err, themes){

Finished it up with a nmp install then npm start and worked like a champ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants