browser-polyfill icon indicating copy to clipboard operation
browser-polyfill copied to clipboard

importing '@expo/browser-polyfill' gives NotSupportedError: Cannot set "location".

Open lxrogers opened this issue 2 years ago • 1 comments

When importing this package I get this error: NotSupportedError: Cannot set "location".

I originally thought it was an issue with expo-three but narrowed it down to this package instead.

Expo managed project, SDK "~48.0.18", building for iOS.

for some reason throw new DOMException("Cannot set "location".", "NotSupportedError"); in @expo/metro-runtime/build/location/Location.native.js is being triggered just by importing this package?

lxrogers avatar Jul 17 '23 06:07 lxrogers

See https://github.com/expo/router/issues/528

jmatsushita avatar Feb 13 '24 12:02 jmatsushita