I’m trying to upload an app to Ionic View unsuccessfully.
Ionic link
worked well but when i ran ionic upload
I got an error.
My app is using firebase.
App is working fine on an emulator.
ionic info -
cli packages:
@ionic/cli-plugin-ionic-angular : 1.4.0 (e:\Ionic\Conv_blank\node_modules\@ionic\cli-plugin-ionic-angular)
@ionic/cli-utils : 1.6.0 (e:\Ionic\Conv_blank\node_modules\@ionic\cli-utils)
ionic (Ionic CLI) : 3.6.0 (e:\Ionic\Conv_blank\node_modules\ionic)
local packages:
@ionic/app-scripts : 2.1.3
Ionic Framework : ionic-angular 3.6.0
System:
Node : v6.11.1
OS : Windows 10
npm : 3.10.10
This is the output I’m getting -
Error: ./node_modules/firebase/utils/promise.js
Module not found: Error: Can’t resolve ‘promise-polyfill’ in 'e:\Ionic\Conv_blank\node_modules\firebase\utils’
resolve ‘promise-polyfill’ in 'e:\Ionic\Conv_blank\node_modules\firebase\utils’
Parsed request is a module
using description file: e:\Ionic\Conv_blank\node_modules\firebase\package.json (relative path: ./utils)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\node_modules\firebase\package.json (relative path: ./utils)
resolve as module
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directory
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directory
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
Error: ./node_modules/firebase/utils/promise.js
Module not found: Error: Can’t resolve ‘promise-polyfill’ in 'e:\Ionic\Conv_blank\node_modules\firebase\utils’
resolve ‘promise-polyfill’ in 'e:\Ionic\Conv_blank\node_modules\firebase\utils’
Parsed request is a modulele: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\node_modules\firebase\package.json (relative path: ./utils)
Field ‘browser’ doesn’t contain a valid alias configurationge.json (relative path: ./node_modules)
after using description file: e:\Ionic\Conv_blank\node_modules\firebase\package.json (relative path: ./utils)ill)
resolve as moduleion
looking for modules in e:\Ionic\Conv_blank\node_modulesonfiguration
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t existist
.tson
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t existst
.jsdirectory
Field ‘browser’ doesn’t contain a valid alias configurationxist
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsoncription file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t existath: ./node_modules)
as directoryion file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modulesonfiguration
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t existist
.tson
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t existst
.jsdirectory
Field ‘browser’ doesn’t contain a valid alias configurationxist
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsoncription file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t existath: ./node_modules)
as directoryion file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modulesonfiguration
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t existist
.tson
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t existst
.jsdirectory
Field ‘browser’ doesn’t contain a valid alias configurationxist
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsonank\node_modules\promise-polyfill]
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directorye_modules\promise-polyfill]
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extensione_modules\promise-polyfill.ts]
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.tsblank\node_modules\promise-polyfill.js]
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.jsblank\node_modules\promise-polyfill.js]
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsonank\node_modules\promise-polyfill.json]
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directorye_modules\promise-polyfill.json]
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extensionse/utils/promise.js 14:76-103
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.tses/firebase/auth.js
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.jsp.module.ts
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsonnk>ionic link
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directoryd f8b07a46
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
looking for modules in e:\Ionic\Conv_blank\node_modules
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules)
using description file: e:\Ionic\Conv_blank\package.json (relative path: ./node_modules/promise-polyfill)
no extensionarted …
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist
.tsy started …
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.ts doesn’t exist
.jsprocess started …
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.js doesn’t exist
.jsonocess finished in 57 ms
Field ‘browser’ doesn’t contain a valid alias configuration
e:\Ionic\Conv_blank\node_modules\promise-polyfill.json doesn’t exist
as directory
e:\Ionic\Conv_blank\node_modules\promise-polyfill doesn’t exist