Closed white3km closed 2 years ago
Hey Ken, your setup should be fine. It's not really about the Netlify setup per se, it's about the webpack config of the admin panel (Gatsby web app and admin app are like 2 separate apps). Your code or some package you're using in your code, is using node style code that's not being properly handled for web use case (some webpack plugin for env variables is missing). Previously, you couldn't adjust the Netflify CMS webpack config, but it seems later versions could handle that. I suggest looking at https://github.com/gatsbyjs/gatsby/issues/10326 for more hints.
Hello, I'm using netlify-cms-app (^2.15.72) with netlify-cms-widget-mdx (0.5.0). When I try to use the Markdown Editor the Preview Panel displays "Invalid MDX: TypeError: process.cwd is not a function" and the console message below.
netlifycms.config.ts
index.tsx
Am I missing something with my configuration?