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
Below code doesn't work as I expected. Have been running into
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: <ErrorBoundary />. Did you accidentally export a JSX literal instead of a component?
Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Can I clarify if react2angular will work with the dynamic imports in general, or if there is any issue with the code snippet I have written? Keen to hear your thoughts to understand how can we make this work.
The text was updated successfully, but these errors were encountered:
@edwards-afterpay This isn't a problem with react2angular. To quote the error: "React.createElement: type is invalid...Did you accidentally export a JSX literal instead of a component?"
The problem is that Profile isn't a component here but a JSX literal. To fix your error, you can just make it a function:
Below code doesn't work as I expected. Have been running into
React lazy component
Angular react2angular wrapper
Can I clarify if react2angular will work with the dynamic imports in general, or if there is any issue with the code snippet I have written? Keen to hear your thoughts to understand how can we make this work.
The text was updated successfully, but these errors were encountered: