Skip to content
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

Failed to resolve dependency 'react-native-maps@0.29.4' #279

Closed
wodin opened this issue May 1, 2022 · 6 comments
Closed

Failed to resolve dependency 'react-native-maps@0.29.4' #279

wodin opened this issue May 1, 2022 · 6 comments

Comments

@wodin
Copy link

wodin commented May 1, 2022

Summary

Snack is unable to resolve react-native-maps@0.29.4

What platform(s) does this occur on?

Android, iOS, Web

SDK Version

41, 42, 43, 44

Reproducible demo or steps to reproduce from a blank project

Go to https://snack.expo.dev

Add the following import to the default snack:

import MapView from 'react-native-maps';

Click on the Add Dependency button.

It takes quite a while to try to resolve the package. Then it fails with the following error:

package.json (3:5)Failed to resolve dependency 'react-native-maps@0.29.4' (Module not found: Error: Package path ./unstable-native-dependencies is not exported from package /tmp/snackager/snackager/buildStatus/1/react-native-maps@0.29.4-ios,android,web/package/node_modules/react-dom (see exports field in /tmp/snackager/snackager/buildStatus/1/react-native-maps@0.29.4-ios,android,web/package/node_modules/react-dom/package.json)
@wodin
Copy link
Author

wodin commented May 1, 2022

I initially thought the error was the same for the different SDK versions, but I've checked again and here's what I've found:

SDK 41 does resolve, but doesn't work:

App.js (3:8372)U is undefined (Device)

  Evaluating module://react-native-maps.js
  Evaluating module://App.js.js
  Loading module://App.js

SDK 42, doesn't resolve, but the error is different:

App.js (1:8372)Unable to fetch module snackager-1/react-native-maps@0.28.0 for web. (Device)

SDK 43, same as SDK 44 except for the version number:

package.json (6:5)Failed to resolve dependency 'react-native-maps@0.28.1' (Module not found: Error: Package path ./unstable-native-dependencies is not exported from package /tmp/snackager/snackager/buildStatus/1/react-native-maps@0.28.1-ios,android,web/package/node_modules/react-dom (see exports field in /tmp/snackager/snackager/buildStatus/1/react-native-maps@0.28.1-ios,android,web/package/node_modules/react-dom/package.json)

@szabodanika
Copy link

I'm having the same issue, neither of the SDK versions can resolve the dependency

@byCedric
Copy link
Member

byCedric commented May 5, 2022

Fixed by #283, will deploy after CI turns green!

@byCedric byCedric closed this as completed May 5, 2022
@byCedric
Copy link
Member

byCedric commented May 5, 2022

Done and deployed.

@elzen20
Copy link

elzen20 commented Jun 6, 2022

I couldn't follow up what you have done to solve this issue. I am working on Snack, I would like to fix this issue.

@wodin
Copy link
Author

wodin commented Jun 9, 2022

@elzen20 what problem are you seeing?

If I create a new Snack, I can add react-native-maps as a dependency without errors now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants