expo / react-native-appearance

Access operating system appearance information (currently only light/dark mode) on iOS, Android, and web
MIT License
337 stars 40 forks source link

Can't resolve '@unimodules/react-native-adapter' #58

Open shukerullah opened 3 years ago

shukerullah commented 3 years ago

lib/module/web/SyntheticPlatformEmitter require @unimodules/react-native-adapter but its missing in package.json

Compiled with warnings. ./node_modules/react-native-appearance/lib/module/web/SyntheticPlatformEmitter.js Module not found: Can't resolve '@unimodules/react-native-adapter' in '/node_modules/react-native-appearance/lib/module/web'

brunolemos commented 3 years ago

I also have this when running create-react-app v4. PS: not using expo.

jkoutavas commented 3 years ago

I'm seeing this too when running with an app generated with create-react-native-web-application. Not using Expo either.

I did a yarn add @unimodules/react-native-adapter to the project and the warning went away. Though, looking at the npm description for this package, it seems to be Expo specific.