expo / expo-pixi

Tools for using pixi.js in Expo
MIT License
304 stars 119 forks source link

Incompatible with Expo 43 #221

Open Bartozzz opened 2 years ago

Bartozzz commented 2 years ago
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 commented 2 years ago

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