You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this code is used in react-native bundles, the result is an object named invariant instead of a function named invariant (see zertosh/invariant#32).
For the code to work in web and react native, the imports should change to import invariant from "invariant";
In TMP, the
nova-facade-react
package depends oninvariant
and imports the default asinvariant
:e.g.
import * as invariant from "invariant";
https://domoreexp.visualstudio.com/Teamspace/_git/teams-modular-packages?path=%2Fpackages%2Fnova%2Ffacade%2Fnova-facade-react%2Fsrc%2Fgraphql%2Fhooks.ts&version=GBmaster
When this code is used in react-native bundles, the result is an object named
invariant
instead of a function namedinvariant
(see zertosh/invariant#32).For the code to work in web and react native, the imports should change to
import invariant from "invariant";
In 1JS, I patched
nova-facade-react
with this change and verified it works in both web and native. https://office.visualstudio.com/Office/_git/1JS/pullrequest/978506The text was updated successfully, but these errors were encountered: