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
I'm gettin this error when I'm trying to initialize the widget manually in typescript:
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 `h`.
This is what I'm trying to do:
import{Control,Preview}from'@netlify/netlify-cms-widget-parent'CMS.registerWidget('parent',Control,Preview)// same story withimport*asNetlifyCmsWidgetParentfrom'@netlify/netlify-cms-widget-parent'CMS.registerWidget('parent',NetlifyCmsWidgetParent.Control,NetlifyCmsWidgetParent.Preview)
Not sure if I'm doing anything wrong. The plugin works though by initializing using the script.
I'd help with this but I'm not sure where the problem is.
The text was updated successfully, but these errors were encountered:
I'm running into the same issue attempting to register this plugin in Gatsby. It's hard to tell what's exported from the minified distribution. In addition to the notation @arpadgabor posted I also attempted these without success:
I'm gettin this error when I'm trying to initialize the widget manually in typescript:
This is what I'm trying to do:
Not sure if I'm doing anything wrong. The plugin works though by initializing using the script.
I'd help with this but I'm not sure where the problem is.
The text was updated successfully, but these errors were encountered: