Skip to content

Commit 1695bd9

Browse files
Merge pull request #24 from vpiskunov/patch-4
Fix "You need to provide a target platform!" error on clean project
2 parents 3994895 + dcf49f3 commit 1695bd9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ module.exports = (api, projectOptions) => {
119119
// console.log('platform - ', platform);
120120

121121
if (!platform) {
122-
throw new Error('You need to provide a target platform!');
122+
// TNS (iOS/Android) always sets platform, so assume platform = 'web' & Vue-CLI glitch of loosing .env options in the UI
123+
platform = 'web';
124+
// --> TO BE DELETED SOON
125+
// throw new Error('You need to provide a target platform!');
123126
}
124127

125128
const projectRoot = api.service.context;

0 commit comments

Comments
 (0)