EvanBacon / expo-progress

Simple progress components for Expo
MIT License
35 stars 9 forks source link

globalThis is not defined #3

Closed foloinfo closed 3 years ago

foloinfo commented 3 years ago

Hi, this is a bug report.

ReferenceError progressImage(src/Bar) happens randomly (caught with Sentry) on the web. I use expo-web SDK39.

I tried to remove the option (since I only use color for progressBar) but I failed to build I also tried giving progressImage={null} but this error still happens.

src/Bar.tsx in progressImage at line 231:17
1

            backgroundColor: color,
            borderRadius,
          },
        ]}
        // @ts-ignore
        source={progressImage}
      />
    </ImageBackground>
  );
}

Is there any way I can fix this?

foloinfo commented 3 years ago

It seem like this error happens with Microsoft Edge or old iOS (iOS9) mobile safari. However, the error also happened at different places as well so I think expo-progress was not the cause of this error but something else.