I’m trying to setup Netlify Large Media to work with my Netlify CMS configuration. The media in the repo was uploaded OK via Git LFS, however when trying to view media inside Netlify CMS nothing displays.
My best guess was that something was wrong with Netlify Git Gateway - however that’s all setup with a GitHub API token. I’m assuming Netlify automatically uses that token and nothing is needed on my end, however.
config.yml is as follows:
backend: name: git-gateway media_folder: "static/img" public_folder: "/img"
When opening up Netlify CMS, I get a
TypeError in the console:
mediaLibrary.js:230 TypeError: Cannot read property 'map' of undefined at S (netlify-lfs-client.js:158) at Object.getResourceDownloadURLArgs (netlify-lfs-client.js:239) at implementation.js:374 at /admin/async https:/firstname.lastname@example.org/dist/netlify-cms.js:234 (anonymous) @ mediaLibrary.js:230
If I try to upload an image I get another
Uncaught (in promise) TypeError: Cannot read property 'find' of undefined at mediaLibrary.js:246 at index.js:8 at redux.js:462 at MediaLibrary.js:145 at Object.<anonymous> (react-dom.production.min.js:14) at f (react-dom.production.min.js:15) at react-dom.production.min.js:15 at S (react-dom.production.min.js:17) at k (react-dom.production.min.js:18) at T (react-dom.production.min.js:18)
It could very well be a bug in Netlify itself - though I doubt it, as I suspect this use-case is very common. My repository is open-sourced at https://github.com/MichaelDono/michaeldono.com/