We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7142a33 commit 94c70c2Copy full SHA for 94c70c2
ReactSpa/src/shared/index.tsx
@@ -14,7 +14,9 @@ if (typeof global === 'undefined') {
14
15
export let client = new JsonServiceClient('/');
16
17
-const isNode = typeof process === 'object';
+const isNode = typeof process === 'object' &&
18
+ typeof process.versions === 'object' &&
19
+ typeof process.versions.node !== 'undefined';
20
if (isNode) {
21
const packageConfig = require("../../package.json");
22
let baseUrl = packageConfig["proxy"];
0 commit comments