Facing the same problem on my app but thought it may be because of some plugin etc.; but was able to simulate the same on blank starter app.
Here are details:
- System Info:
_Dhavals-MacBook-Pro:testingReflectErr dhavalpersonal$ ionic info
Your system information:
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v5.10.1
_Xcode version: Xcode 5.1 Build version 5B130a _
******************************************************
_ Dependency warning - for the CLI to run correctly, _
_ it is highly recommended to install/upgrade the following: _
_ Install ios-sim to deploy iOS applications.npm install -g ios-sim
(may require sudo)_
_ Install ios-deploy to deploy iOS applications to devices. npm install -g ios-deploy
(may require sudo)_
******************************************************
Dhavals-MacBook-Pro:testingReflectErr dhavalpersonal$_
- Steps that i performed:
Dhavals-MacBook-Pro:Sample_Projects dhavalpersonal$ ionic start testingReflectErr blank --v2 --ts
Creating Ionic app in folder /Users/dhavalpersonal/Sample_Projects/testingReflectErr based on blank project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/master.zip
[=============================] 100% 0.0s
Installing npm packagesâŠ
Adding initial native plugins
[=============================] 100% 0.0s
Adding in iOS application by default
add to body class: platform-ios
Saving your Ionic app state of platforms and plugins
Saved platform
Saved plugins
Saved package.json
⏠⫠⏠⫠Your Ionic app is ready to go! ⏠⫠⏠â«
- Trying to run on device with
Dhavals-MacBook-Pro:testingReflectErr dhavalpersonal$ ionic run android -l -c -s
Running ârun:beforeâ gulp task before run
[21:11:03] Starting âcleanââŠ
[21:11:03] Finished âcleanâ after 9.97 ms
[21:11:03] Starting âwatchââŠ
[21:11:03] Starting âsassââŠ
[21:11:03] Starting âhtmlââŠ
[21:11:03] Starting âfontsââŠ
[21:11:03] Starting âscriptsââŠ
[21:11:04] Finished âhtmlâ after 135 ms
[21:11:04] Finished âscriptsâ after 642 ms
[21:11:04] Finished âfontsâ after 749 ms
[21:11:08] Finished âsassâ after 4.55 s
9.1 MB bytes written (9.07 seconds)
[21:11:28] Finished âwatchâ after 25 s
[21:11:28] Starting ârun:beforeââŠ
[21:11:28] Finished ârun:beforeâ after 15 ÎŒs
âą Youâre trying to build for android but donât have the platform installed yet.
â Installing android for you.
â Installed platform android
Setup Live Reload
âŠ
âŠ
BUILD SUCCESSFUL
Total time: 26.747 secs
Built the following apk(s): _
_ /Users/dhavalpersonal/Sample_Projects/testingReflectErr/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /Users/dhavalpersonal/Sample_Projects/testingReflectErr/platforms/android/build/outputs/apk/android-debug.apk
LAUNCH SUCCESS
Ionic server commands, enter:
_ restart or r to restart the client app from the root_
_ goto or g and a url to have the app navigate to the given url_
_ consolelogs or c to enable/disable console log output_
_ serverlogs or s to enable/disable server log output_
_ quit or q to shutdown the server and exit_
0 337331 error Uncaught TypeError: Cannot read property â6â of undefined, http://192.168.1.5:8100/build/js/Reflect.js, Line: 894
1 338592 error Uncaught reflect-metadata shim is required when using class decorators, http://192.168.1.5:8100/build/js/app.bundle.js, Line: 36710
The App (both blank & my build) works on browser (chrome & safari)
Any help/pointer appreciated
Regards
Dhaval Shah