SDK45: Unable to resolve module uuid/v5 in expo go
See original GitHub issueSummary
Initializing a new sdk45 beta project and using “uuid” in expo go throws the following error
iOS Bundling failed 1021ms
Unable to resolve module uuid/v5 from {file paths}/node_modules\expo\build\environment\getInstallationIdAsync.js: uuid/v5 could not be found within the project or in these directories:
node_modules\expo\node_modules
node_modules
1 | import * as Application from 'expo-application';
> 2 | import uuidv5 from 'uuid/v5';
| ^
3 | let installationId;
4 | const UUID_NAMESPACE = '29cc8a0d-747c-5f85-9ff9-f2f16636d963'; // uuidv5(0, "expo")
5 | export default async function getInstallationIdAsync() {
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
SDK45
Environment
expo-env-info 1.0.3 environment info:
System:
OS: Windows 10 10.0.19044
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ~45.0.0-beta.4 => 45.0.0-beta.8
react: 17.0.2 => 17.0.2
react-dom: 17.0.2 => 17.0.2
react-native: 0.68.1 => 0.68.1
react-native-web: 0.17.1 => 0.17.1
Expo Workflow: managed
Reproducible demo
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ios bundling failed expo | The AI Search Engine You Control
I trying to build an application that enables the user to log in using the phone number I have an error "iOS Bundling...
Read more >Upgrading to SDK 46: Invariant Violation: No ... - Expo Forums
We are currently on SDK 45 and tried to upgrade to 46. Ho… ... iOS Bundling failed 241ms Unable to resolve "uuid/v5" from...
Read more >Unable to resolve module @unimodules/core - Stack Overflow
I included the "@unimodules/core": "~7.2.0" in my project, and now it works. And then I could upgrade to 43 and 44 expo version....
Read more >'ERROR: Cannot find module 'uuid/v5'' - Auth0 Community
Importing the module per the docs as uuid/v5 works fine from the command line, but in a rule I get the error: ERROR:...
Read more >react-native-uuid - npm
react-native-uuid is a zero-dependency TypeScript implementation of RFC4122.. Latest version: 2.0.1, last published: 2 years ago.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed in
expo@45.0.0-beta.9
I discovered that by removing another package in the monorepo which had uuid as a dependency, the issue went away. However, removing uuid in that package wasn’t an option. The only thing that has solved the issue has been setting
config.resolver.disableHierarchicalLookup
to false inmetro.config.js
, going against what is recommended in the docs. Still looking for a better solution, if anyone has one.