-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Undefined Unable to resolve module ../version.js from ...\node_modules\@apollo\client\core\ApolloClient.js #11629
Comments
It seems like your bundler is looking for a |
@phryneas I was installing React Navigation and Nativewind dependencies for the latter to install Apollo Client. I think the problem was in the order of the installation, I started again from the beginning installing Apollo and the following ones and now it no longer shows me any errors. Thanks for help and time. |
That's great to hear! :) I'm going to close this issue now - have a great day! |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm having trouble importing Apollo Client into my React Native project.
import { ApolloClient, InMemoryCache, ApolloProvider } from "@apollo/client";
This is the error it shows me in the console:
Unable to resolve "../version.js" from "node_modules\@apollo\client\core\ApolloClient.js" ERROR [Error: undefined Unable to resolve module ../version.js from ***\node_modules\@apollo\client\core\ApolloClient.js:
In the ApolloClient.js file when searching for the file import { version } from "../version.js"; redirects to "version.d.ts":
But if the "version.js" file exists:
I appreciate the help and time to resolve this error.
The text was updated successfully, but these errors were encountered: