You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
After configuring cloudinary media library for images, when an image is selected from cloudinary, markdown value becomes an absolute URL and it disappears from graphql queries (or better, image value is null).
If the current behavior is a bug, please provide the steps to reproduce.
cloned the repo and added cloudinary configuration in Netlify cms config.yml.
When building, error is displayed: TypeError: Cannot read property 'childImageSharp' of null
What is the expected behavior?
image should be processed by Gatsby
backend:
name: git-gateway
branch: master
commit_messages:
create: 'Create {{collection}} “{{slug}}”'
update: 'Update {{collection}} “{{slug}}”'
delete: 'Delete {{collection}} “{{slug}}”'
uploadMedia: '[skip ci] Upload “{{path}}”'
deleteMedia: '[skip ci] Delete “{{path}}”'
media_folder: static/img
public_folder: /img
media_library:
name: cloudinary
config:
cloud_name: xxx
api_key: xxx
collections:
..don't want to copy all file since it is not relevant..
cms.js file:
import CMS from 'netlify-cms-app'
import cloudinary from 'netlify-cms-media-library-cloudinary'
// import AboutPagePreview from './preview-templates/AboutPagePreview'
import BlogPostPreview from './preview-templates/BlogPostPreview'
// import ProductPagePreview from './preview-templates/ProductPagePreview'
// import IndexPagePreview from './preview-templates/IndexPagePreview'
CMS.registerMediaLibrary(cloudinary)
// CMS.registerPreviewTemplate('index', IndexPagePreview)
// CMS.registerPreviewTemplate('about', AboutPagePreview)
// CMS.registerPreviewTemplate('products', ProductPagePreview)
CMS.registerPreviewTemplate('blog', BlogPostPreview)
image value in markdown file after selecting an image from cloudinary: image: https://res.cloudinary.com/xxx/image/upload/v1613039158/lemurs_xysf6i.png
Error when running gatsby build
ERROR #95313
Building static HTML failed for path "/about/"
See our docs page for more info on this error: https://gatsby.dev/debug-html
20 | <Img
21 | className='about-image max-w-50 mx-auto'
> 22 | fluid={about.frontmatter.image.childImageSharp.fluid}
| ^
23 | />
24 | </div>
25 |
WebpackError: TypeError: Cannot read property 'childImageSharp' of null
Bug report
What is the current behavior?
After configuring cloudinary media library for images, when an image is selected from cloudinary, markdown value becomes an absolute URL and it disappears from graphql queries (or better, image value is
null
).If the current behavior is a bug, please provide the steps to reproduce.
cloned the repo and added cloudinary configuration in Netlify cms
config.yml
.When building, error is displayed:
TypeError: Cannot read property 'childImageSharp' of null
What is the expected behavior?
image should be processed by Gatsby
Other relevant information:
System info
config.yml
cms.js file:
image value in markdown file after selecting an image from cloudinary:
image: https://res.cloudinary.com/xxx/image/upload/v1613039158/lemurs_xysf6i.png
Error when running
gatsby build
Node.js version: v14.15.4
NPM/Yarn version 6.14.10
Operating System: Ubuntu
Additional tools:
The text was updated successfully, but these errors were encountered: