corber: 'EMBER_CORDOVA' is not recognized as an internal or external command, operable program or batch file.
ember cordova:serve --platform=android --reload-url=localhost:4200
**'EMBER_CORDOVA' is not recognized as an internal or external command,
operable program or batch file.**
....
BUILD SUCCESSFUL
Total time: 7.843 secs
Built the following apk(s):
E:/.../ember-cordova/cordova/platforms/android/build/outputs/apk/android-debug.apk
**'EMBER_CORDOVA' is not recognized as an internal or external command,**
operable program or batch file.
npm ERR! Windows_NT 10.0.10586
I’m running the latest version of ember-cordova.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (7 by maintainers)
@villander @alexblom @anulman if this helps, I used an environment variable when on the server to set the locationType to auto. Then the lack of a setting to default to hash.
In my config/environment.rb:
locationType: process.env.NOT_CORDOVA ? 'auto' : 'hash',
Reasonable. I’d say this is a new issue that we should support hash only for cordova based builds.
As a hack for now, you could perhaps use the isWebView property (https://github.com/isleofcode/ember-cordova/blob/master/docs/services/platform.md). Else lets open an issue for this.
@hoboman313 this is addressed in #76, which should be released shortly.