My site builds and works in development mode, but when deployed, this error is thrown and the build fails:
3:53:55 PM: error “gatsby-plugin-netlify-cms” threw an error while running the onCreateWebpackConfig lifecycle:
3:53:55 PM: Package subpath ‘./umd/react.production.min.js’ is not defined
3:53:55 PM: 212 | assetDir = _ref6.assetDir;
3:53:55 PM: 213 | return [{
3:53:55 PM: > 214 | from: require.resolve(_path.default.join(name, assetDir, assetName)),
3:53:55 PM: | ^
3:53:55 PM: 215 | to: assetName
3:53:55 PM: 216 | }, sourceMap && {
3:53:55 PM: 217 | from: require.resolve(_path.default.join(name, assetDir, sourceMap)),
3:53:55 PM: Make sure that you don’t have a typo somewhere and use valid arguments in onCreateWebpackConfig lifecycle.
Learn more about onCreateWebpackConfig here: Gatsby Node APIs
I’m clueless as to where the error lies. Any ideas?