2017-08-24 6 views
0

私の角笛2オフライン/ ionic3アプリで悩んでいます。私は私のアプリをionic viewにアップロードしようとするとこのエラーが表示され続けます。 Android用にビルドしても、イオン実験室を使用してもエラーは発生しません。エラー:polifill promise angularfire2

私は他の人がポリフィルの問題を抱えていると、彼らがやってお勧めすることを見た:

npm install promise-polyfill --save-exact 

をしかし、それは私のために動作しません、エラーがまだそこにあります。

"firebase": "^ 4.3.0"、 "angularfire2": "^ 4.0.0-RC0"、 "angularfire2-オフライン":「^ 4.2これらは、私のバージョン(package.json)です。 4 "、

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

答えて

0

私は、アプリケーションにangularfire2をインストールした後も全く同じエラーが発生しています。コードをionic proプラットフォームにプッシュするときだけです。 最初に私は別のバージョンにangularfire2を更新することで逃げたものだけでなくiOS用のエラーの建物を持っていた:

npm i --save [email protected] 

たぶん、あなたはそれを試すことができますか?

angularfire2が自分のドキュメントを更新しました--save angularfire2 firebase約束-ポリフィルを