Ionic Pro: How can I know what the maximum Angular version (and other packages) I can use is?


#1

Okay, I am trying to move to pro and I think that I screwed up the transition of an existing app to Ionic pro. Is there an easy way to reset and start over?


#2

Okay, I found the problem. It was because Ionic only supports Angular 4.1.3 and I was on the current 4.4.3. So, I had to revert my changes and, again, rewrite things back to where they had been and now things are working.

Ionic really needs to look at my package.json and let me know if I am getting ahead of them.

So, the question now becomes, how do we know when it is safe to update our packages?


#3

Okay, I lied the Ionic Pro build is still failing (it, of course, works perfectly locally) – it just got farther and took longer to report the failure. My error message is:

[11:08:39] Error: ./~/firebase/utils/promise.js Module not found: Error: Can’t resolve ‘promise-polyfill’ in
’/usr/src/app/node_modules/firebase/utils’ resolve ‘promise-polyfill’ in
’/usr/src/app/node_modules/firebase/utils’ Parsed request is a module using description file:
/usr/src/app/node_modules/firebase/package.json (relative path: ./utils) Field ‘browser’ doesn’t contain a
valid alias configuration after using description file: /usr/src/app/node_modules/firebase/package.json
(relative path: ./utils) resolve as module looking for modules in /usr/src/app/node_modules using
description file: /usr/src/app/package.json (relative path: ./node_modules) Field ‘browser’ doesn’t contain
a valid alias configuration after using description file: /usr/src/app/package.json (relative path:
./node_modules) using description file: /usr/src/app/package.json (relative path:
./node_modules/promise-polyfill) as directory /usr/src/app/node_modules/promise-polyfill doesn’t exist no
extension Field ‘browser’ doesn’t contain a valid alias configuration
/usr/src/app/node_modules/promise-polyfill doesn’t exist .ts Field ‘browser’ doesn’t contain a valid alias
configuration /usr/src/app/node_modules/promise-polyfill.ts doesn’t exist .js Field ‘browser’ doesn’t
contain a valid alias configuration /usr/src/app/node_modules/promise-polyfill.js doesn’t exist .json Field
’browser’ doesn’t contain a valid alias configuration /usr/src/app/node_modules/promise-polyfill.json
doesn’t exist [/usr/src/app/node_modules/promise-polyfill] [/usr/src/app/node_modules/promise-polyfill]
[/usr/src/app/node_modules/promise-polyfill.ts] [/usr/src/app/node_modules/promise-polyfill.js]
[/usr/src/app/node_modules/promise-polyfill.json] @ ./~/firebase/utils/promise.js 14:76-103 @
./~/firebase/app/firebase_app.js @ ./~/firebase/app.js @ ./src/providers/user.service.ts @
./src/app/app.module.ts @ ./src/app/main.ts
Error: ./~/firebase/utils/promise.js
Module not found: Error: Can’t resolve ‘promise-polyfill’ in '/usr/src/app/node_modules/firebase/utils’
resolve ‘promise-polyfill’ in '/usr/src/app/node_modules/firebase/utils’
Parsed request is a module
using description file: /usr/src/app/node_modules/firebase/package.json (relative path: ./utils)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: /usr/src/app/node_modules/firebase/package.json (relative path: ./utils)
resolve as module
looking for modules in /usr/src/app/node_modules
using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: /usr/src/app/package.json (relative path: ./node_modules)
using description file: /usr/src/app/package.json (relative path: ./node_modules/promise-polyfill)
as directory
/usr/src/app/node_modules/promise-polyfill doesn’t exist
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
/usr/src/app/node_modules/promise-polyfill doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
/usr/src/app/node_modules/promise-polyfill.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
/usr/src/app/node_modules/promise-polyfill.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
/usr/src/app/node_modules/promise-polyfill.json doesn’t exist