Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Incompatible with Expo 43 #221

Open
Bartozzz opened this issue Apr 1, 2022 · 1 comment · May be fixed by #228
Open

Incompatible with Expo 43 #221

Bartozzz opened this issue Apr 1, 2022 · 1 comment · May be fixed by #228

Comments

@Bartozzz
Copy link

Bartozzz commented Apr 1, 2022

Android Bundling failed 6048ms
Unable to resolve module @unimodules/core from /node_modules/expo-asset-utils/src/fileInfoAsync.js: @unimodules/core could not be found within the project or in these directories:
  node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  1 | // @flow
  2 | import * as FileSystem from 'expo-file-system';
> 3 | import { Platform } from '@unimodules/core';
    |                           ^
  4 | import filenameFromUri from './filenameFromUri';
  5 |
  6 | function isAssetLibraryUri(uri: string): boolean {

expo-asset-utils is a dependency of expo-pixi. Installing @unimodules/core does not fix the issue and is not recommended anymore as specified in the changelog:

Remove react-native-unimodules, @unimodules/core, and @unimodules/react-native-adapter if you have any of them installed in your project. You may also want to check (eg: with yarn why @unimodules/core) to see if any of your dependencies install these libraries transitively, and upgrade or remove those dependencies. Learn more. ~ https://blog.expo.dev/expo-sdk-44-4c4b8306584a

@Bartozzz Bartozzz changed the title Incompatible with Expo 44 Incompatible with Expo 43 Apr 2, 2022
@Bartozzz
Copy link
Author

I fixed this library myself in #228. It's compatible w/ all the Expo versions.

@Bartozzz Bartozzz linked a pull request May 29, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant