one-click-hugo-cms icon indicating copy to clipboard operation
one-click-hugo-cms copied to clipboard

/admin load fails

Open coldestheart opened this issue 5 years ago • 2 comments

Error loading the CMS configuration
Config Errors:

YAMLException: end of the stream or a document separator is expected at line 153, column 19:
    <div style="height: 0; width: 0; position: absolut ... 
                      ^

Check your config.yml file..

Node 12.13 lts Ubuntu 18

coldestheart avatar Oct 27 '19 10:10 coldestheart

That probably means that you're getting back a 404 HTML page, so the config.yml isn't there. Assuming your cms is at /admin, make sure there's a slash after admin, Eg., /admin/.

If you see a hash before the slash (/admin#/), add a slash before the hash(/admin/#/).

erquhart avatar Oct 28 '19 15:10 erquhart

find a solution for /admin (according to netlify deploy info), you can build first and then just serve dist files.

npm run-script build
http-server dist

shanquan avatar Apr 08 '20 03:04 shanquan

I assume this is answered

martinjagodic avatar Apr 11 '23 13:04 martinjagodic