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

Can't load data on empty instance #1

Open
skodapetr opened this issue Feb 20, 2019 · 2 comments
Open

Can't load data on empty instance #1

skodapetr opened this issue Feb 20, 2019 · 2 comments

Comments

@skodapetr
Copy link
Member

Running using npm start and opening in web browser it's seen that the site tries to fetch resources from
/data/descriptors.json and /data/targets.json, these are available but contains HTML code of the main page.

Causing the following errors:

index.js:8 Error Message Cannot load data from /data/descriptors.json.
SyntaxError: Unexpected token < in JSON at position 0
16:32:44.927 index.js:8 Error Message Cannot load data from /data/targets.json.
SyntaxError: Unexpected token < in JSON at position 0

I gues this should not happen and some static resources should be server instead?

@skodapetr skodapetr changed the title Can't show data Can't load data on empty instance Feb 20, 2019
@dragoniscz
Copy link
Contributor

The npm start starts webserver that redirects non existing path to index page. In this case, it means that resources are not available.

@skodapetr
Copy link
Member Author

Where should the data directory be located? As when I created it in the directory root, before running npm, I got the described behaviour.

It's not blocking big issue as the project can be built and served by another HTTP server.

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

2 participants