This repository was archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 313
This repository was archived by the owner on May 1, 2020. It is now read-only.
Module not found: Error: Can't resolve 'promise-polyfill' #1001
Copy link
Copy link
Open
Description
Short description of the problem:
I'm seeing a weird behavior. When I run ionic serve
my app builds and runs as expected. No issues. HOWEVER, when I run ionic upload
to test the app in ionic view I get the error message below.
I KNOW it's a firebase error BUT why does it work fine using ionic serve
and not with ionic upload
?
What behavior are you expecting?
If running ionic serve
works without any errors, I expect ionic upload
to work as well.
Steps to reproduce:
Not sure how to reproduce this issue. Best if you visit my repo
Running app-scripts build:
[20:57:28] build dev started ...
[20:57:29] clean started ...
[20:57:29] clean finished in 7 ms
[20:57:29] copy started ...
[20:57:29] transpile started ...
[20:57:32] transpile finished in 3.52 s
[20:57:32] preprocess started ...
[20:57:32] deeplinks started ...
[20:57:32] deeplinks finished in 89 ms
[20:57:32] preprocess finished in 91 ms
[20:57:32] webpack started ...
[20:57:32] copy finished in 3.86 s
Error: ./~/firebase/app/shared_promise.js
Module not found: Error: Can't resolve 'promise-polyfill' in 'C:\ionic\CajaFuerte-app\node_modules\firebase\app'
resolve 'promise-polyfill' in 'C:\ionic\CajaFuerte-app\node_modules\firebase\app'
Parsed request is a module
using description file: C:\ionic\CajaFuerte-app\node_modules\firebase\package.json (relative path: ./app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\ionic\CajaFuerte-app\node_modules\firebase\package.json (relative path: ./app)
resolve as module
looking for modules in C:\ionic\CajaFuerte-app\node_modules
using description file: C:\ionic\CajaFuerte-app\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\ionic\CajaFuerte-app\package.json (relative path: ./node_modules)
using description file: C:\ionic\CajaFuerte-app\package.json (relative path: ./node_modules/promise-polyfill)
as directory
C:\ionic\CajaFuerte-app\node_modules\promise-polyfill doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\ionic\CajaFuerte-app\node_modules\promise-polyfill doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.json doesn't exist
[C:\ionic\CajaFuerte-app\node_modules\promise-polyfill]
[C:\ionic\CajaFuerte-app\node_modules\promise-polyfill]
[C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.ts]
[C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.js]
[C:\ionic\CajaFuerte-app\node_modules\promise-polyfill.json]
@ ./~/firebase/app/shared_promise.js 37:35-62
@ ./~/firebase/app/firebase_app.js
@ ./~/firebase/app.js
@ ./~/firebase/firebase-browser.js
@ ./src/providers/auth-service.ts
@ ./src/app/app.module.ts
@ ./src/app/main.ts
Which @ionic/app-scripts version are you using?
PS C:\ionic\CajaFuerte-app> ionic info
global packages:
@ionic/cli-utils : 1.1.2
Cordova CLI : 6.5.0
Ionic CLI : 3.1.2
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.1.2
@ionic/cli-plugin-ionic-angular : 1.1.2
Ionic Framework : ionic-angular 3.2.1
System:
Node : v7.9.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
abdel-ships-it, sean-hill, sharduul, bharathkumarms, Yoko-0x0 and 2 more
Metadata
Metadata
Assignees
Labels
No labels