Skip to content

Commit aa3de73

Browse files
authored
fix: handle unknown/undefined platform edge case (#5694)
1 parent 645e9ea commit aa3de73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/services/platform-environment-requirements.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ export class PlatformEnvironmentRequirements
152152
darwin: "macos",
153153
} as any)[process.platform];
154154

155+
const anchor = platform ? `#${os}-${platform.toLowerCase()}` : ''
156+
155157
return (
156158
`Verify that your environment is configured according to the system requirements described at\n` +
157-
`https://docs.nativescript.org/environment-setup.html#${os}-${platform.toLowerCase()}.`
159+
`https://docs.nativescript.org/environment-setup.html${anchor}.`
158160
);
159161
}
160162

0 commit comments

Comments
 (0)