strapi / strapi-starter-next-corporate

Next.js starter for creating a corporate site with Strapi.
https://strapi-starter-next-corporate.vercel.app
MIT License
346 stars 95 forks source link

Cannot destructure property 'url' of 'media' as it is null. #52

Open rudiwawa opened 3 years ago

rudiwawa commented 3 years ago

i found error

TypeError: Cannot destructure property 'url' of 'media' as it is null. [develop:frontend] at NextImage (D:\Z\zerolim\cmd and landing page\zero-cor\frontend.next\server\pages[[...slug]].js:424:5) [develop:frontend] at processChild (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\react-dom\cjs\react-dom-server.node.development.js:3353:14) [develop:frontend] at resolve (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\react-dom\cjs\react-dom-server.node.development.js:3270:5) [develop:frontend] at ReactDOMServerRenderer.render (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\react-dom\cjs\react-dom-server.node.development.js:3753:22) [develop:frontend] at ReactDOMServerRenderer.read (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\react-dom\cjs\react-dom-server.node.development.js:3690:29) [develop:frontend] at renderToString (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\react-dom\cjs\react-dom-server.node.development.js:4298:27) [develop:frontend] at Object.renderPage (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\next\dist\next-server\server\render.js:53:854) [develop:frontend] at Function.getInitialProps (D:\Z\zerolim\cmd and landing page\zero-cor\frontend.next\server\pages_document.js:556:19) [develop:frontend] at loadGetInitialProps (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\next\dist\next-server\lib\utils.js:5:101) [develop:frontend] at renderToHTML (D:\Z\zerolim\cmd and landing page\zero-cor\frontend\node_modules\next\dist\next-server\server\render.js:53:1145)