Unable to install as normal under React 17. When forcing it, it breaks the page:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of 'm'.
import dynamic from 'next/dynamic'
import {
CreatableSelectControl,
CreatableSelectPreview
} from 'netlify-cms-widget-create-select'
const CMS = dynamic(
() =>
import('netlify-cms-app').then(cms => {
cms.init()
cms.registerWidget(
'create-select',
window.CreatableSelectControl,
window.CreatableSelectPreview
)
}),
{
ssr: false
}
)
const CMSPage: React.FC = () => {
return (
<>
<CMS />
</>
)
}
export default CMSPage