-
Notifications
You must be signed in to change notification settings - Fork 37
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 resolve module @mux/mux-player-react/lazy after updating react-datocms to version 7.0.1 in React Native project #103
Comments
Having recently updated from
|
Hi @arcataroger I tried that but it didn't work |
I created a small patch to address this issue, it removes all the VideoPlayer module exports
|
I just released a preview version of the library that uses a different export strategy for the
That should workaround your issues and help in those contexts where I hope you have the chance to test this new approach and let me know of any problems you may find: |
@sistrall: Now I am getting
on version 8.0.0-1 |
@dazlious thanks for your feedback: I'd need some more info to understand the problem. What's the context where you're using the library? |
I was experimenting a bit with our setup that includes webpack 5, server side code bundling (commonjs) and client side (mostly esm). I ran into several issues one of them was the one above. When I run the code through webpack I was forced to bundle the react-datocms package into our bundle as leaving it it node_modules during runtime I would get an error because of the package.json with type module. (7.0.3) So the general fix I applied is that I now bundle react-datocms into my bundle (also on the server) Another error I am getting is when I try to import only One more error I get also on jest runtime that is The error with I have experimented a bit too much so that I am unable to pinpoint exactly the underlying issue. Happy to connect with you and walk you through anything in more detail. |
Description:
Hello,
I've recently updated the
react-datocms
library in my React Native project from version 3.0.8 to 7.0.1. After the update, the project crashes on startup with the following error:It appears that the
VideoPlayer
component inreact-datocms
is causing the issue due to the missing module@mux/mux-player-react/lazy
.Environment:
Steps to Reproduce:
react-datocms
from 3.0.8 to 7.0.1 in a React Native project.Additional Information:
@mux/mux-player-react
seems to be incompatible with React Native or might not be included correctly as a dependency.react-datocms
version 3.0.8.Request:
Could you please provide guidance on how to resolve this issue? Is there a known workaround or fix available?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: