@ionic/ng-toolkit:cordova-serve unable to add cordova.js to bundle
See original GitHub issueFeature Request
Ionic Info
Run ionic info
from a terminal/cmd prompt and paste the output below.
----
/Users/glebmikheev/dokuro/prj/svo/node_modules/ionic
----
Ionic:
ionic (Ionic CLI) : 4.0.1
Ionic Framework : @ionic/angular 4.0.0-beta.0
@angular-devkit/core : 0.6.8
@angular-devkit/schematics : 0.6.1
@angular/cli : 6.0.1
@ionic/ng-toolkit : 1.0.0
@ionic/schematics-angular : 1.0.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.4
System:
Android SDK Tools : 25.2.5
ios-deploy : 1.9.2
ios-sim : 6.1.3
NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Environment:
ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1/
Describe the Feature Request
Unable to run ng run app:ionic-cordova-serve
with cordova.js bundled into app.
(using to run livereload server for customly bundled xcode project)
Describe Preferred Solution Add flag, or have cordova.js by default in ionic serve
Describe Alternatives
Adding --cordova
flag to ionic serve
or
Adding cordova.js to bundle when --platform
flag provided with ios
/android
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Can't include cordova.js file in android Cordova app with ...
I tried to pack bundle.js either with and without webpack production flag, but it seems to have no effect. I could leave cordova.js...
Read more >Creating your first Cordova app
This guide shows you how to create a JS/HTML Cordova application and ... On installation you should be able to invoke node and...
Read more >cordova-js - npm
Build cordova.js when preparing your platform's npm package. You can do that by adding the NPM prepare hook script to your package.json :....
Read more >Cordova: Navigating to local content from a Website - Medium
The Cordova app I've been working on contains the barest of essentials locally in favor or relying on a frequently updated remote website...
Read more >Migrating to Cordova-Android 11 - Ionic
ionic cordova platform add android@11 ... android:exported needs to be explicitly specified for element <activity#your.bundle.id.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There may be a version mismatch in your project for these peer dependencies: https://github.com/ionic-team/ionic-cli/blob/develop/packages/%40ionic/ng-toolkit/package.json#L59-L62
In particular, can you paste the output of
npm ls @angular-devkit/build-angular
?You god damn right, thank you so much!)