Description:
Steps to Reproduce:
Delete node-modules
Upgrade to 4.0.0-alpha.4
npm i
Output:

C:\Users\peter>cd C:\ae\adaept.com\aemenu
C:\ae\adaept.com\aemenu>npm i
> [email protected] install C:\ae\adaept.com\aemenu\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\peter\AppData\Roaming\npm-cache\node-sass\4.9.0\win32-x64-57_binding.node
> [email protected] postinstall C:\ae\adaept.com\aemenu\node_modules\node-sass
> node scripts/build.js
Binary found at C:\ae\adaept.com\aemenu\node_modules\node-sass\vendor\win32-x64-57\binding.node
Testing binary
Binary is fine
> @angular/[email protected] postinstall C:\ae\adaept.com\aemenu\node_modules\@angular\cli
> node ./bin/ng-update-message.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1087 packages from 1271 contributors in 46.066s
C:\ae\adaept.com\aemenu>ionic s
> ng serve --host=0.0.0.0 --port=8100
[INFO] Development server running!
Local: http://localhost:8100
External: http://192.168.1.67:8100
DevApp: aemenu@8100 on Merry-Christmas
[INFO] Browser window opened to http://localhost:8100!
[ng] i ï½¢wdmï½£: wait until bundle finished: /
[ng] Date: 2018-05-10T05:34:35.695Z
[ng] Hash: 742c44f0cc752f330449
[ng] Time: 9526ms
[ng] chunk {main} main.js, main.js.map (main) 1.9 kB [initial] [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 669 bytes [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.4 kB [entry] [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 20.1 kB [initial] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]
[ng]
[ng] ERROR in node_modules/@ionic-native/core/decorators/common.d.ts(1,23): error TS2688: Cannot find type definition file for 'cordova'.
[ng]
[ng] i ï½¢wdmï½£: Failed to compile.
My ionic info:
C:\ae\adaept.com\aemenu>ionic info
cli packages: (C:\Users\peter\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 2.0.0-rc.6
ionic (Ionic CLI) : 4.0.0-rc.6
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@angular-devkit/core : 0.6.0
@angular-devkit/schematics : 0.6.0
@angular/cli : 6.0.0
@ionic/schematics-angular : 1.0.0-rc.6
Cordova Platforms : none
Ionic Framework : @ionic/angular 4.0.0-alpha.4
System:
NodeJS : v8.11.1
npm : 6.0.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
C:\ae\adaept.com\aemenu>
Other Information:
@peterennis Can you post the output of npm ls @types/cordova ?
I will do it this evening when I am on that machine again.
C:\ae\adaept.com\aemenu>npm ls @types/cordova
[email protected] C:\ae\adaept.com\aemenu
+-- @ionic-native/[email protected]
| `-- UNMET DEPENDENCY @types/cordova@latest
+-- @ionic-native/[email protected]
| `-- UNMET DEPENDENCY @types/cordova@latest
`-- @ionic-native/[email protected]
`-- UNMET DEPENDENCY @types/cordova@latest
npm ERR! missing: @types/cordova@latest, required by @ionic-native/[email protected]
npm ERR! missing: @types/cordova@latest, required by @ionic-native/[email protected]
npm ERR! missing: @types/cordova@latest, required by @ionic-native/[email protected]
C:\ae\adaept.com\aemenu>
I get the same here after updating ionic-cli and the ionic-conference-app core-update branch to latest when running "ionic serve".
Cordova latest is installed. Haven't got time to look in the details, was not happening before the update.
Ionic Native requires the @types/cordova dependency, but for some reason, it's missing.
It appears to be an issue with the npm install. UNMET DEPENDENCY means a dependency isn't installed for some reason. Remedy the situation with npm install, or rm -rf node_modules package-lock.json && npm install.
Deleting the node_modules folder and the package-lock.json and then a clean npm install fixed the problem.
Seems just to be some kind of minor update dependency problem. Nothing to worry about.
Thanx for pointing this out, @dwieeb .
Recreate project:
C:\ae\adaept.com\aemenu>npm ls @types/cordova
[email protected] C:\ae\adaept.com\aemenu
+-- @ionic-native/[email protected]
| `-- @types/[email protected]
+-- @ionic-native/[email protected]
| `-- @types/[email protected] deduped
`-- @ionic-native/[email protected]
`-- @types/[email protected] deduped
C:\ae\adaept.com\aemenu>
Most helpful comment
Deleting the node_modules folder and the package-lock.json and then a clean npm install fixed the problem.
Seems just to be some kind of minor update dependency problem. Nothing to worry about.
Thanx for pointing this out, @dwieeb .