After upgrading to the latest version of angularfire2, I encountered some issues despite following the installation guide. The error message I'm receiving is:
[18:57:50] ionic-app-script task: "build" [18:57:50] Error: ./node_modules/firebase/firestore/platform_browser/webchannel_connection.js Module not found: Error:
Can't resolve '@firebase/webchannel-wrapper' in
'/Users/usr/Documents/project/node_modules/firebase/firestore/platform_browser' resolve
'@firebase/webchannel-wrapper' in
'/Users/usr/Documents/project/node_modules/firebase/firestore/platform_browser' Parsed request is
a module using description file: /Users/usr/Documents/project/node_modules/firebase/package.json
(relative path: ./firestore/platform_browser) Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/usr/Documents/project/node_modules/firebase/package.json
(relative path: ./firestore/platform_browser) resolve as module looking for modules in
/Users/usr/Documents/project/node_modules using description file:
/Users/usr/Documents/project/package.json (relative path: ./node_modules) Field 'browser' doesn't
contain a valid alias configuration after using description file:
/Users/usr/Documents/project/package.json (relative path: ./node_modules) using description file:
/Users/usr/Documents/project/package.json (relative path:
./node_modules/@firebase/webchannel-wrapper) no extension Field 'browser' doesn't contain a valid alias
configuration /Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper doesn't exist
.ts Field 'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.ts doesn't exist .js Field
'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.js doesn't exist .json
Field 'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.json doesn't exist as
directory /Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper doesn't exist
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.ts]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.js]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.json]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper] @
./node_modules/firebase/firestore/platform_browser/webchannel_connection.js 12:25-64 @
./node_modules/firebase/firestore/platform_browser/browser_platform.js @
./node_modules/firebase/firestore/platform_browser/browser_init.js @ ./node_modules/firebase/firestore.js @
./node_modules/angularfire2/firestore/collection/changes.js @
./node_modules/angularfire2/firestore/public_api.js @ ./node_modules/angularfire2/firestore/index.js @
./src/app/app.component.ts @ ./src/app/app.module.ts @ ./src/app/main.ts
package.json
{
"name": "stockup",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
...
I've been struggling to solve this issue and would appreciate any help. Here's some relevant environment information:
cli packages: (/usr/local/lib/node_modules)
...
If you need more details, please let me know. Thank you!