-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get working in a Remix application #19
Comments
Hey @danecando, unfortunately the stackblitz link with the reproduction isn't accessible for me: it says Could you share a valid link for a reproduction? Thanks in advance! |
@Regaddi apologies just updated the link. I've also noted the same errors when letting DailyProvider/DailyCall setup the callObject |
Thanks @danecando! I started digging a bit and it seems like Remix is somehow interfering with the |
@Regaddi |
@danecando @nkrmr So what happens is that the You can see that the 0.2.1 version doesn't include the The latest version of a more recent fork of the same project has the I opened a PR at remorses/esbuild-plugins#36 to update the dependency, but that's more of a long-term solution. Also I'm not familiar enough with Remix to provide a short-term solution, but I would probably try to add some configuration, that resolves an import to |
Thank you for your answer, there is a PR on Remix to update this plugin: I hope that fixes the issue. Best regard |
@nkrmr @danecando |
Description
Unable to initiate a call and pass it to DailyProvider in a Remix application. Since the error starts in DailyProvider I'm gonna post the issue here for now. I've tried running the same code in Vite and NextJS without any issues. When I try to use it in Remix I get errors:
Details
Looking through the stack trace it appears to have something to do with using hydrateRoot in React 18. Very far from obvious what the specific issue is beyond that to me at least.
Reproduction
Here's a reproduction: https://stackblitz.com/edit/remix-daily-co?file=app/routes/index.tsx
And here's the same code in a regular react template working: https://stackblitz.com/edit/react-ts-2rur5u?file=App.tsx
The text was updated successfully, but these errors were encountered: