Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. #1080
-
I have a vite js project with vite-plugin-ssr, It build and works correctly in my development environment but when I make use of command
The error message I get don't give a bright help. This is my repository project for comunidad dezzpo. I am trying to I have already look for and try common solutions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The best would be to create a minimal reproduction. I'll dig into it then. |
Beta Was this translation helpful? Give feedback.
-
ActualizationAs I am using react-swipeable-views, for ts projects there are necessary types definitions to use:
|
Beta Was this translation helpful? Give feedback.
Actualization
As I am using react-swipeable-views, for ts projects there are necessary types definitions to use:
pnpm install --save @types/react-swipeable-views-utils @types/react-swipeable-views
, same forpnpm i -D @types/google.maps
. Also I have to add this packages to noExternal config in myvite.config.ts
file because each of them was throw me with error.