메인 페이지에서 Props로 받아 포스트 데이터 출력하기 강의에서 여기까지 한 후, 2개의 포스트 아이템이 화면에 잘 출력되는지 확인해주세요. >>>> 이 부분까지 하고 실행을 하려니 아래와 같은 쿼리 오류가 생겼습니다. There was an error in your GraphQL query: Field "thumbnail" must not have a selection since type "String" has no subfields. This can happen if you e.g. accidentally added { } to the field "thumbnail". If you didn't expect "thumbnail" to be of type "String" make sure that your input source and/or plugin is correct. However, if you expect "thumbnail" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL. It is recommended to explicitly type your GraphQL schema if you want to use optional fields. publicURL 을 못가져오는것 같은데.. 어떻게 해결해야할까요 ㅠ.ㅠ 레포지토리 남깁니다! https://github.com/syankkim/syankkim.github.io
안녕하세요! 잘 따라고있는 사람입니다. 다름이아니라, 로컬에서는 작업이 문제없이 되는데, 배포를 하니, gatsby 기본 튜토리얼만 나옵니다 ㅠㅠ url index 연결 다 해준 것 같은데 문제가 있네요 ㅠㅠ 깃 르포 주소입니다. : https://github.com/J3llyBe4n/j3llyBe4n.github.io
Building static HTML failed for path "/main/postItem/" See our docs page for more info on this error: https://gatsby.dev/debug-html 19 | categories, 20 | summary, > 21 | thumbnail: { publicURL }, | ^ 22 | link, 23 | }) => { 24 | return ( WebpackError: TypeError: Cannot read properties of undefined (reading 'publicURL') - postItem.tsx:21 gatsby-starter-default/src/pages/main/postItem.tsx:21:16 - inheritsLoose.js:5 [gatsby-starter-default]/[@babel]/runtime/helpers/inheritsLoose.js:5:1 - emotion-is-prop-valid.esm.js:15 [gatsby-starter-default]/[@emotion]/is-prop-valid/dist/emotion-is-prop-valid.esm.js:15:1 - inheritsLoose.js:7 [gatsby-starter-default]/[@babel]/runtime/helpers/inheritsLoose.js:7:1 - static-entry.js:294 gatsby-starter-default/.cache/static-entry.js:294:22 - history.js:49 [gatsby-starter-default]/[@gatsbyjs]/reach-router/es/lib/history.js:49:6 publicUrl 이 없으면 build 환경에서 잘 동작합니다. 저 구문만 있으면 build 환경에서 돌아가지 않습니다..! https://github.com/urther/example 레포 주소 첨부합니다 ㅠㅠ 8000/graphql 에서 publicUrl 정상 동작하는것도 확인했습니다!
github blog를 만들라는 강의를 듣고, jekyll로 했다가 강사님의 블로그가 hugo 만들어진 것을 보고 새로운 종류를 알게 되어 블로그에 작성하신 동일한 이유로 hugo를 해보고 있습니다. 그러다가 몇 일 동안 구글링도 해보고 지웠다가 다시 해보지만 자꾸 막혀서 질문 글 올립니다. 작성하신 아래 내용을 보고 따라서 진행했습니다. https://github.com/Integerous/Integerous.github.io hugo server -D로 하면 local server에 들어가면 post/test1.md 한 것과 테마가 적용되서 나옵니다. 하지만 제가 원하는 jeha00.github.io 로 들어가면 404가 뜹니다. 혹시 몰라서 처음부터 진행해봤습니다. /public 경로에서 git push origin master 를 터미널에 입력하면 error : src refspec master does not match any error : failed to push some refs to https://github.com/Jeha00/JeHa00.github.io.git 라고 뜹니다. 제 생각에는 github과 연결하는 부분에서 문제가 발생하는 것 같습니다. 어떻게 해결해야할지를 모르겠습니다... => git push origin main 으로 하니 해결되었습니다. git push origin main 으로도 안되면 git add . git commit -m'커밋 메세지' git push -u origin main 으로 하니 해결되었습니다. 404로 뜨는 것은 사라지고, <user-id>.github.io 로 만들어졌으나, content/post 로 올린 글들은 안나와있습니다. hugo server -D 로 확인하면 다 나와있습니다. 글들이 public에 들어가 있어야 하나요?? 어떻게 해야할까요??
Error Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-darwin-arm64v8.node' Possible solutions: - Install with the --verbose flag and look for errors: "npm install --ignore-scripts=false --verbose sharp" - Install for the current runtime: "npm install --platform=darwin --arch=arm64 sharp" - Consult the installation documentation: https://sharp.pixelplumbing.com/install not finished open and validate gatsby-configs, load plugins - 0.127s gatsby-config.js module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ { resolve: 'gatsby-plugin-typescript', options: { isTSX: true, allExtensions: true, }, }, `gatsby-plugin-react-helmet`, // { // resolve: `gatsby-source-filesystem`, // options: { // name: `contents`, // path: `${__dirname}/contents`, // }, // }, `gatsby-transformer-sharp`, `gatsby-plugin-sharp`, // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: <https://gatsby.dev/offline> // `gatsby-plugin-offline`, `gatsby-plugin-emotion`, ], } try... 노드버전 16.0.0으로 업그레이드 후, yarn add --platform=darwin --arch=arm64 sharp 해보았으나, 에러가 여전히 발생합니다. 해결 방법이 있을까요?? 그리고 좋은 강의 너무도 감사합니다! 해결완료하였습니다. 다른 분들에게 참고가 될 수 있을 거 같아서 남겨놓아요! rm -r node_modules/sharp yarn install --check-files 참고자료: https://github.com/gatsbyjs/gatsby/issues/20957
선생님 안녕하세요. BE 개발자의 꿈을 이루기 위해 선생님의 강의를 몇가지 구매하였습니다. 현재 질문드리는 강의 외에도 구매한 강의에 대해 학습 내용 정리 및 학습을 했다는 나름의 증명으로 git과 blog에 내용을 정리하고자 합니다. 코드랑 내용을 같이 올릴 예정인데 허락해주실 수 있나요? 출처는 반드시 밝히겠습니다!