index.js:617 Uncaught TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
at eval (webpack-internal:///(rsc)/./node_modules/swiper/swiper-react.mjs:132:93)
at (rsc)/./node_modules/swiper/swiper-react.mjs (file://C:D-driveDekstopmyday.nextservervendor-chunksswiper.js:80:1)
at webpack_require (file://C:D-driveDekstopmyday.nextserverwebpack-runtime.js:33:42)
at eval (webpack-internal:///(rsc)/./src/app/api/test/page.tsx:7:70)
at (rsc)/./src/app/api/test/page.tsx (file://C:D-driveDekstopmyday.nextserverappapitestpage.js:228:1)
at Function.webpack_require (file://C:D-driveDekstopmyday.nextserverwebpack-runtime.js:33:42)
at async getLayoutOrPageModule (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:10825)
at async createComponentTreeInternal (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:17503)
at async (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:22220)
at async createComponentTreeInternal (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:21444)
at async (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:22220)
at async createComponentTreeInternal (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:21444)
at async (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:22220)
at async createComponentTreeInternal (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:157:21444)
at async getRSCPayload (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:161:6213)
at async renderToStream (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:161:29607)
at async renderToHTMLOrFlightImpl (file://C:D-driveDekstopmydaynode_modulesnextdistcompilednext-serverapp-page.runtime.dev.js:161:19099)
at async doRender (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:1587:34)
at async responseGenerator (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:1834:28)
at async DevServer.renderToResponseWithComponentsImpl (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:1878:28)
at async DevServer.renderPageComponent (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:2292:24)
at async DevServer.renderToResponseImpl (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:2330:32)
at async DevServer.pipeImpl (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:984:25)
at async NextNodeServer.handleCatchallRenderRequest (file://C:D-driveDekstopmydaynode_modulesnextdistservernext-server.js:281:17)
at async DevServer.handleRequestImpl (file://C:D-driveDekstopmydaynode_modulesnextdistserverbase-server.js:877:17)
at async (file://C:D-driveDekstopmydaynode_modulesnextdistserverdevnext-dev-server.js:373:20)
at async Span.traceAsyncFn (file://C:D-driveDekstopmydaynode_modulesnextdisttracetrace.js:157:20)
at async DevServer.handleRequest (file://C:D-driveDekstopmydaynode_modulesnextdistserverdevnext-dev-server.js:370:24)
at async invokeRender (file://C:D-driveDekstopmydaynode_modulesnextdistserverlibrouter-server.js:183:21)
at async handleRequest (file://C:D-driveDekstopmydaynode_modulesnextdistserverlibrouter-server.js:360:24)
at async requestHandlerImpl (file://C:D-driveDekstopmydaynode_modulesnextdistserverlibrouter-server.js:384:13)
at async Server.requestListener (file://C:D-driveDekstopmydaynode_modulesnextdistserverlibstart-server.js:142:13)
please suggest any solution or we can’t use swiper in typescript