Build a Next.js 14 Blog with Ghost CMS Backend - Step-by-Step Guide

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 6

  • @killertotoso9880
    @killertotoso9880 Месяц назад

    didn't work for me

    • @the-tech-maze
      @the-tech-maze  Месяц назад

      Can you tell which part you are having an error maybe i can help

    • @killertotoso9880
      @killertotoso9880 Месяц назад

      @@the-tech-maze
      Unhandled Runtime Error
      TypeError: src is null
      Call Stack
      isStaticRequire
      ../src/shared/lib/get-img-props.ts
      isStaticRequire
      ../src/shared/lib/get-img-props.ts
      src
      ../src/shared/lib/get-img-props.ts
      props
      ../src/client/image-component.tsx
      React
      renderWithHooks
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (11121:1)
      updateForwardRef
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (15854:1)
      mountLazyComponent
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (16785:1)
      beginWork$1
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (18464:1)
      beginWork
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (26927:1)
      performUnitOfWork
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (25748:1)
      workLoopSync
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (25464:1)
      renderRootSync
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (25419:1)
      recoverFromConcurrentError
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (24597:1)
      performConcurrentWorkOnRoot
      node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js (24542:1)
      workLoop
      node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js (256:1)
      flushWork
      node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js (225:1)
      performWorkUntilDeadline
      node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js (534:1)

    • @killertotoso9880
      @killertotoso9880 Месяц назад

      It happened after finishing the project step by step and then I just tried using git clone in a new directory and it gave the same problem

    • @the-tech-maze
      @the-tech-maze  Месяц назад

      it says that there is a type error for field "src" but i dont think we have used that field. can you share you code via github. so that i can look into it.

    • @the-tech-maze
      @the-tech-maze  Месяц назад

      @killertotoso9880
      I think the error might be from nextjs config file where you add domains for images and if it is not, try running the cmd "npm run build" which will tell you where the error is caused.
      Hope this helps