Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0.0-beta.5] Cannot read property 'platforms' of undefined #15348

Closed
doender opened this issue Aug 27, 2018 · 2 comments
Closed

[4.0.0-beta.5] Cannot read property 'platforms' of undefined #15348

doender opened this issue Aug 27, 2018 · 2 comments
Assignees

Comments

@doender
Copy link

doender commented Aug 27, 2018

After updating to beta.5 I get the following error:

TypeError: Cannot read property 'platforms' of undefined
    at getPlatforms (platform.js:17)
    at isPlatform (platform.js:20)
    at Platform.push../node_modules/@ionic/angular/dist/providers/platform.js.Platform.is (platform.js:86)

Here's my environment:

Ionic:

   ionic (Ionic CLI)          : 4.1.1 (.nvm/versions/node/v10.6.0/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.5
   @angular-devkit/core       : 0.7.4
   @angular-devkit/schematics : 0.7.4
   @angular/cli               : 6.1.4
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.3, (and 18 other plugins)

System:

   ios-sim : 5.0.13
   NodeJS  : v10.6.0 (.nvm/versions/node/v10.6.0/bin/node)
   npm     : 6.1.0
   OS      : macOS High Sierra
   Xcode   : Xcode 9.4.1 Build version 9F2000
@ionitron-bot ionitron-bot bot added the triage label Aug 27, 2018
@doender doender changed the title Ionic 4.0.0-beta.5: Cannot read property 'platforms' of undefined [4.0.0-beta.5] Cannot read property 'platforms' of undefined Aug 28, 2018
@doender
Copy link
Author

doender commented Aug 28, 2018

Until this is fixed and to be able to continue development I manually set the platforms in node_modules/@ionic/angular/dist/providers/platform.js for now:

export function getPlatforms(win) {
    return ['desktop'];
}

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 27, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants