react-native-tvos / config-tv

6 stars 2 forks source link

Glob Cannot read properties of undefined (reading 'sync') #24

Open HADeveloper opened 2 months ago

HADeveloper commented 2 months ago

I started getting this error recently: TypeError: [android.dangerous]: withAndroidDangerousBaseMod: Cannot read properties of undefined (reading 'sync')

My solution was to remove "default" from this line in "@react-native-tvos/config-tv/build/withTVAndroidRemoveFlipper.js"

This: const paths = glob_1.default.sync(${androidRoot}/**/MainApplication.*); To This: const paths = glob_1.sync(${androidRoot}/**/MainApplication.*); //removed the default before sync

This cleared up the issue.

HADeveloper commented 2 months ago

It looks like the ts version of the file here in the repo, it is fixed. What am I missing that I have it in my node modules?