-
Notifications
You must be signed in to change notification settings - Fork 294
Description
Describe the bug
React multi-Carousel for react-19 vite is not working {Carousel} or Carousel which ever u use it is given error in console 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 Page67.
at createFiberFromTypeAndProps (react-dom_client.js?v=4cedac8c:2819:21)
at createFiberFromElement (react-dom_client.js?v=4cedac8c:2830:11)
at reconcileChildFibersImpl (react-dom_client.js?v=4cedac8c:3815:373)
at react-dom_client.js?v=4cedac8c:3871:28
at reconcileChildren (react-dom_client.js?v=4cedac8c:5388:50)
at updateFunctionComponent (react-dom_client.js?v=4cedac8c:5576:4)
at beginWork (react-dom_client.js?v=4cedac8c:6142:20)
at runWithFiberInDEV (react-dom_client.js?v=4cedac8c:853:66)
at performUnitOfWork (react-dom_client.js?v=4cedac8c:8431:94)
at workLoopSync (react-dom_client.js?v=4cedac8c:8327:37)
createFiberFromTypeAndProps @ react-dom_client.js?v=4cedac8c:2819
createFiberFromElement @ react-dom_client.js?v=4cedac8c:2830
reconcileChildFibersImpl @ react-dom_client.js?v=4cedac8c:3815
(anonymous) @ react-dom_client.js?v=4cedac8c:3871
reconcileChildren @ react-dom_client.js?v=4cedac8c:5388
updateFunctionComponent @ react-dom_client.js?v=4cedac8c:5576
beginWork @ react-dom_client.js?v=4cedac8c:6142
runWithFiberInDEV @ react-dom_client.js?v=4cedac8c:853
performUnitOfWork @ react-dom_client.js?v=4cedac8c:8431
workLoopSync @ react-dom_client.js?v=4cedac8c:8327
renderRootSync @ react-dom_client.js?v=4cedac8c:8311
performWorkOnRoot @ react-dom_client.js?v=4cedac8c:7996
performWorkOnRootViaSchedulerTask @ react-dom_client.js?v=4cedac8c:9061
performWorkUntilDeadline @ react-dom_client.js?v=4cedac8c:36
__commonJS.node_modules/react/cjs/react-jsx-dev-runtime.development.js.exports.jsxDEV @ react_jsx-dev-runtime.js?v=4cedac8c:193
(anonymous) @ main.jsx:18Understand this error
Reproduction
Link to codesandbox.