Thanks for the feedback. I tried both the above. Upgrading storage to 2.0.0 I still got the following error when running ionic serve
…
Runtime Error Can't resolve all parameters for Storage: (?).
I then tried using the factory suggested above by @golear. This time ionic serve launched the app with no runtime errors!
So then tried the ionic build android --release --prod --aot
but unfortunately for the following errors
BTW, Ionic info gives me the following (node is 7.2.0)
ordova CLI: 6.4.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.2.0
Xcode version: Not installed
And the errors are…
ionic-app-scripts build "--prod" "--release" "--aot"
[21:33:38] ionic-app-scripts 1.1.3-201702230511
[21:33:38] build prod started ...
[21:33:38] clean started ...
[21:33:38] clean finished in 1 ms
[21:33:38] copy started ...
[21:33:38] ngc started ...
[21:33:44] build prod failed: Error encountered resolving symbol values statically. Calling function
'NoOpAnimationDriver', function calls are not supported. Consider replacing the function or lambda with a
reference to an exported function, resolving symbol AnimationDriver.NOOP in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/src/dom/animation_driver.d.ts, resolving
symbol BrowserTestingModule in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/testing/browser.d.ts, resolving symbol
BrowserTestingModule in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/testing/browser.d.ts
[21:33:44] ionic-app-script task: "build"
[21:33:44] Error: Error encountered resolving symbol values statically. Calling function 'NoOpAnimationDriver',
function calls are not supported. Consider replacing the function or lambda with a reference to an exported
function, resolving symbol AnimationDriver.NOOP in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/src/dom/animation_driver.d.ts, resolving
symbol BrowserTestingModule in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/testing/browser.d.ts, resolving symbol
BrowserTestingModule in
D:/dev/pr/myapp/node_modules/@angular/platform-browser/testing/browser.d.ts
Error: Error encountered resolving symbol values statically. Calling function 'NoOpAnimationDriver', function calls are not supported. Conside
r replacing the function or lambda with a reference to an exported function, resolving symbol AnimationDriver.NOOP in D:/dev/pr/myapp
ect/node_modules/@angular/platform-browser/src/dom/animation_driver.d.ts, resolving symbol BrowserTestingModule in D:/dev/pr/myapp
/node_modules/@angular/platform-browser/testing/browser.d.ts, resolving symbol BrowserTestingModule in D:/dev/pr/myapp/node_module
s/@angular/platform-browser/testing/browser.d.ts
at SyntaxError.BaseError [as constructor] (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:1597:31)
at new SyntaxError (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:1795:20)
at simplifyInContext (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:25783:27)
at StaticReflector.simplify (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:25795:17)
at StaticReflector.annotations (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:25291:64)
at NgModuleResolver.resolve (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:17771:86)
at CompileMetadataResolver.getNgModuleMetadata (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:18272:6
4)
at CompileMetadataResolver.getNgModuleSummary (D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:18228:56
)
at D:\dev\pr\myapp\node_modules\@angular\compiler\bundles\compiler.umd.js:18318:72
at Array.forEach (native)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\Peter\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run"
"ionic:build" "--" "--prod" "--release" "--aot"
npm ERR! node v7.2.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! myapp@ ionic:build: `ionic-app-scripts build "--prod" "--release" "--aot"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp@ ionic:build script 'ionic-app-scripts build "--prod" "--release" "--aot"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the myapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build "--prod" "--release" "--aot"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs myapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls myapp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\dev\pr\myapp\npm-debug.log
PS D:\dev\pr\myapp>
My package.json now includes…
"dependencies": {
"@angular/common": "2.4.9",
"@angular/compiler": "2.4.9",
"@angular/compiler-cli": "2.4.9",
"@angular/core": "2.4.9",
"@angular/forms": "2.4.9",
"@angular/http": "2.4.9",
"@angular/platform-browser": "2.4.9",
"@angular/platform-browser-dynamic": "2.4.9",
"@angular/platform-server": "2.4.9",
"@ionic/storage": "2.0.0",
"@types/c3": "^0.4.38",
"@types/jszip": "0.0.32",
"@types/lodash": "^4.14.51",
"c3": "^0.4.11",
"ionic-angular": "2.1.0",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"js-logger": "^1.3.0",
"jslogger": "^1.0.3",
"jszip": "^3.1.3",
"lodash": "^4.17.4",
"moment": "^2.17.1",
"ng2-translate": "^5.0.0",
"rxjs": "5.0.0-beta.12",
"semaphore-async-await": "^1.3.2",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
“devDependencies”: {
"@ionic/app-scripts": “nightly”,
“typescript”: “2.2.1”,
"@types/jasmine": “^2.5.42”,
"@types/node": “^7.0.5”,
“angular-cli”: “^1.0.0-beta.28.3”,
“codecov”: “^1.0.1”,
“install”: “^0.8.7”,
“jasmine-core”: “^2.5.2”,
“jasmine-spec-reporter”: “^3.2.0”,
“karma”: “^1.4.1”,
“karma-chrome-launcher”: “^2.0.0”,
“karma-jasmine”: “^1.1.0”,
“karma-mocha-reporter”: “^2.2.2”,
“karma-remap-istanbul”: “^0.6.0”,
“ts-node”: “^2.1.0”,
“tslint”: “^4.4.2”,
“tslint-eslint-rules”: “^3.3.0”
},
“cordovaPlugins”: [
“cordova-plugin-statusbar”,
“cordova-plugin-whitelist”,
“cordova-plugin-console”,
“cordova-plugin-device”,
“cordova-plugin-splashscreen”,
“ionic-plugin-keyboard”
],
Would these errors point to something else I need to do as well?