i Just started to edit my test page using Kaldi templates.
I did try to delete my logo througg my github directory.
tree/master/src/img
and there i have got 2 files (logo + gitgub image)
when i trying to change the logo or when i try to delete a logo i cant to deploy it. Where is the problem ?
: error #85909 GRAPHQL
2:39:39 PM: Field "image" must not have a selection since type "String" has no subfields
2:39:39 PM: File: src/templates/product-page.js:214:19
2:39:39 PM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to
2:39:39 PM: npm
2:39:39 PM: ERR! code ELIFECYCLE
2:39:39 PM: npm
2:39:39 PM: ERR! errno 1
2:39:39 PM: npm
2:39:39 PM: ERR! gatsby-starter-netlify-cms@1.1.3 build: `npm run clean && gatsby build`
2:39:39 PM: npm ERR! Exit status 1
2:39:39 PM: npm
2:39:39 PM: ERR!
2:39:39 PM: npm ERR! Failed at the gatsby-starter-netlify-cms@1.1.3 build script.
2:39:39 PM: npm ERR!
2:39:39 PM: This is probably not a problem with npm. There is likely additional logging output above.
2:39:39 PM: npm
2:39:39 PM: ERR! A complete log of this run can be found in:
2:39:39 PM: npm ERR! /opt/buildhome/.npm/_logs/2019-11-18T13_39_39_438Z-debug.log
2:39:39 PM: Function Dir: /opt/build/repo/lambda
2:39:39 PM: TempDir: /tmp/zisi-5dd29ed32597f6c9475d64fa
hi @jasa2 - welcome to the Netlify community. I moved your question because it is more CMS related. That said, the error you are seeing is not a netlify specific one, but a gatsby error, as your templates are not getting parsed correctly.
Have you tried testing your project to see if it builds locally? my assumption is that it won’t. We definitely have some gatsby pros around - maybe @jlengstorf can weigh in - but you also get better information for this specific thing from some of the gatsby support folks
I insert my own created logo also in svg format. And I’m changing only that. I don’t understand why an error is is appearing. What else can I do to change this logo?
I am surprised that such a seemingly simple task causes me a problem…
I have the exact same issue, and uncoincidentally, it started happening on exactly the same day (November 19). I couldn’t reproduce it locally at first, but after upgrading all packages and clearing caches and such, there it is:
Field “publicationLogo” must not have a selection since type “String” has no subfields
Field “image” must not have a selection since type “String” has no subfields
The first commit this happened on was an update of a single .md file, but it happens now even if that file is removed, and across all pages in my project.
I’m no JS expert, but is there a way to see what dependencies might have been updated on that day?
Perhaps a very stupid question.
how to do it from my netlify panel (I have a free account only) .
Will this command automatically repair an existing website or do I have to rebuild it?
I mean, I already have a website. And i want to follow this command. How do I log in to the console?
Hi, @jasa2. You don’t run the command at Netlify. You run the command in your local repo, commit the changes, and then push those changes to the upstream repo.
The push to upstream then triggers a build a Netlify and we’ll clone the newest version of the repo with those changes in it when building the site. If this doesn’t work or if there are other questions, please let us know.
Thanks for the answer. But I’m sorry, I don’t really know how to do it.
I am trained to manage websites but from the server level, e.g. through ssh in linux. And here I don’t know how to approach it. Can you explain me step by step what to do?
i create my new folder , install npm and then: npm i gatsby@2.17.16 --save --save-exact
next i add this comand git remote add origin https://github.com/myusername/gatsby-starter-netlify-cms.git
then git push origin master
but I get this kind of error: ! [rejected] master -> master (fetch first)
Hey @jasa2. You don’t need to create a new folder and you’ve done some of the steps in the wrong order.
after you clone the directory you’ll need to change your current working directory. The steps are below. The first step shows you how to change directories.
cd gatsby-starter-netlify-cms... // change to the directory of your projects
npm install // install npm packages
npm i gatsby@2.17.16 --save --save-exact // run the command to change the gatsby package
Thanks a lot for your help. I have a lot to learn…
Unfortunately, I think I broke something. I suggested some tips but it looks like I deleted everything I had and replaced it with something else. Check it out. GitHub - tumitem/gatsby-starter-netlify-cms
Is it possible to somehow undo all these changes to a moment earlier? ;/
It doesn’t look like your repository has any history as shown here: Commits · tumitem/gatsby-starter-netlify-cms · GitHub. If the oldest commit isn’t what you’re looking for, you might have to start over from scratch. If you have a copy of your old repository, you might be able to recreate your site using that.