cms.js icon indicating copy to clipboard operation
cms.js copied to clipboard

Starter project not working

Open matdombrock opened this issue 3 years ago • 0 comments

I'm on Ubuntu 18.04 serving the files from Apache and testing the front-end on the latest Chrome stable.

I can't get the app to work, all of the pages are 404.

I've confirmed that everything (htaccess, config ect) is working correctly.

As a matter of fact if I clone the main repo instead of the starter it works fine (as expected).

So whatever is going on here really is specific to the starter project.

api.github.com/repos/yourusername/yourrepo/contents/pages?ref=gh-pages:1 Failed to load resource: the server responded with a status of 404 ()
matdombrock.com/:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at y.getFileElements (cms.js:2)
    at y.<anonymous> (cms.js:2)
    at XMLHttpRequest.n.onreadystatechange (cms.js:2)
api.github.com/repos/yourusername/yourrepo/contents/posts?ref=gh-pages:1 Failed to load resource: the server responded with a status of 404 ()
matdombrock.com/:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at y.getFileElements (cms.js:2)
    at y.<anonymous> (cms.js:2)
    at XMLHttpRequest.n.onreadystatechange (cms.js:2)
cms.js:2 Uncaught TypeError: Cannot read property 'render' of undefined
    at Object.routes.<computed> [as pages] (cms.js:2)
    at CMS.route (cms.js:2)

image

matdombrock avatar Apr 26 '21 10:04 matdombrock