Got an error on netlify if use react-slick library

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?

Hi, which site on your account are you seeing this?

i can not five the link of site, ue to NDA of my company. It just throw error only on react-slick
<Slider {…settings}>
//code here
</Slider/> // here “/” just for this message added
on this part of code, if i remove slider component everything ok.

here are imports: import Slider from “react-slick”;
import “slick-carousel/slick/slick.css”;
import “slick-carousel/slick/slick-theme.css”;

Unfortunately, this appears to be an issue with your code and we cannot help you debug this. It could also be a bug with Astro’s integration for Netlify, which is maintained by Astro, so they can help you here.

with code everything ok, even if just put nothing in slider component is gives an error. so i guess it` a bug with astro integration