-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Error message: Error: Failed to load config.yml (404) #1456
Comments
The error you get seems to be you trying to get to the cms through the url provided when running "npm start". npm run build In your terminal. The cms can then be accessed through the new served local url. |
This is really inconvenient. Why I can't use |
@heyalbert This procedure is explained in the README for the starter: https://github.com/AustinGreen/gatsby-starter-netlify-cms. Please ask there if you have questions about their instructions. By the way, thanks for the detailed bug report! |
This is the same issue as #999, and related to #332.
Works
Doesn't work
This issue is so common, we should just hardcode a trailing slash check when the config 404's and provide a link with the trailing slash in the error message for that case. |
This comment has been minimized.
This comment has been minimized.
@erquhart makes the point I just came here to say.
the same issue from almost a year ago #683 |
I am a new user and already browsed all github issues reporting the same issue I have. But in none of the issues a sollution is provided, all issues are closed... I have setup Eleventy with Netlify and the CMS, all builds work as expected but I'm really stuck at the 404 error. I've also read the #1456 issue that gave this link for a solution Gatsby + Netlify CMS Starter But I can't find a solution in the README.md. Any help is greatly appreciated, thanks! |
@Paul-dH did you try
|
Hi @joseph-allen, I don't have a local dev environment. I run a repro on Bitbucket and thats connected to Netlify. I wanted to use Netlify as a CMS. |
I'm having the same issue. You can view my folder structure here: https://i.imgur.com/AGOJ3h5.png and the contents of my config.yml
and index.html are
I've tried going to http://localhost:8080/admin/#/ via npm start and it doesn't work there. It doesn't work at http://127.0.0.1:8080/admin/#/ when doing npm build preview either. I also tried branch deploys via the Netlify console but https://test--insiight.netlify.com/admin/# (which is our site) doesn't work either. |
@q-omar We appreciate your input, however, this is a (closed) issue about the Gatsby integration only. Please open your own new issue so that people will see it and can help you. Thanks! |
for 11ty, you need to make sure the yaml file gets inside the admin folder inside the generated site, so you need to add it to the addPassthroughCopy. |
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
Not able to load admin panel under localhost:port/admin.
console info:
The config.yml is under
public/admin/config.yml
but has to be under thepublic
folder in order to be read. This behavior is not correct: He should be able to read the config.yml under/admin
as intended. I didn't change anything on my own, this is how it went through installing everything through the https://www.netlifycms.org/ assistant.- If the current behavior is a bug, please provide the steps to reproduce.
Installed new cms using https://www.netlifycms.org/. Precisely this one: https://app.netlify.com/start/deploy?repository=https://github.com/AustinGreen/gatsby-starter-netlify-cms&stack=cms
- What is the expected behavior?
config.yml
file underpublic/admin
.- Please mention your versions where applicable.
Netlify CMS version: 1.9.1
Browser version: Chrome
Node.JS version: 10.4.1
Operating System: macOS High Sierra
- Please link or paste your
config.yml
below if applicable.The text was updated successfully, but these errors were encountered: