expo-pixi icon indicating copy to clipboard operation
expo-pixi copied to clipboard

Incompatible with Expo 43

Open Bartozzz opened this issue 2 years ago • 1 comments

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 avatar Apr 01 '22 18:04 Bartozzz

I fixed this library myself in https://github.com/expo/expo-pixi/pull/228. It's compatible w/ all the Expo versions.

Bartozzz avatar May 29 '22 10:05 Bartozzz