You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I saw ur package and wanted to give it a try, so after some digging, I found the document, I followed this one, but I got an issue, I have this exact error:
cast.hook.js:1 Uncaught Error: Cast instance not provided to <CastProvider />
at useCast (cast.hook.js:1:1)
at Video (Video.jsx:14:1)
at renderWithHooks (react-dom.development.js:16305:1)
at mountIndeterminateComponent (react-dom.development.js:20074:1)
at beginWork (react-dom.development.js:21587:1)
at beginWork$1 (react-dom.development.js:27426:1)
at performUnitOfWork (react-dom.development.js:26557:1)
at workLoopSync (react-dom.development.js:26466:1)
at renderRootSync (react-dom.development.js:26434:1)
at recoverFromConcurrentError (react-dom.development.js:25850:1)
But, I followed the documentation, I have a Cast.instance.js:
After some work, I put the CastProvider in my App.jsx file, and it's not the same error now, now I just have a session_error, but it's an error that I don't have on the demo website, and nothing interesting is provided. Here's my code: App.js
importReact,{useEffect}from'react';import{Route,BrowserRouter,Routes,useLocation}from'react-router-dom';// routes imports// ...import"./App.css";import{Cast}from'@jdion/cast'import{CastProvider}from'@jdion/cast-react';constcastInstance=newCast();constApp=()=>{return(<BrowserRouter><Layout><Routes><Routepath="/"element={<Home/>}/><Routepath="/movies/:lib"element={<Movies/>}/>
// ...
</Routes></Layout></BrowserRouter>);};exportconstLayout=({ children })=>{return(<><CastProviderinstance={castInstance}>{children}</CastProvider></>);};exportdefaultApp;
Hi, I saw ur package and wanted to give it a try, so after some digging, I found the document, I followed this one, but I got an issue, I have this exact error:
But, I followed the documentation, I have a Cast.instance.js:
I have my Video Component, where I import and render the thing:
If u could help that would be great, thanks
The text was updated successfully, but these errors were encountered: