Hello.
I have an Astro.js project, there is a page that imported react component with slider using react slick. If i deploy my project on netlify and open page with react-slick slider it shows me an error
This function has crashed
An unhandled error in the function code triggered the following message:
Runtime.UnhandledPromiseRejection - Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Stack trace
Runtime.UnhandledPromiseRejection: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at process.<anonymous> (file:///var/runtime/index.mjs:1186:17)
at process.emit (node:events:513:28)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at processTicksAndRejections (node:internal/process/task_queues:96:32)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:447:9)
if i use Vercel - everything works. Can someone, please. help me to solve this problem?