Hi, I am using Ionic version 4.1.2 and I have an issue when running ionic serve
:
[ng] WARNING in /home/brian/node_modules/@angular/core/@angular/core.es5.js
[ng] 5659:15-36 Critical dependency: the request of a dependency is an expression
[ng] WARNING in /home/brian/node_modules/@angular/core/@angular/core.es5.js
[ng] 5675:15-102 Critical dependency: the request of a dependency is an expression
[ng] ERROR in /home/brian/node_modules/angularfire2/angularfire2.js
[ng] Module not found: Error: Can't resolve '@angular/common' in '/home/brian/node_modules/angularfire2'
[ng] ERROR in /home/brian/node_modules/rxjs-compat/_esm5/Observable.js
[ng] Module not found: Error: Can't resolve 'rxjs/internal/Observable' in '/home/brian/node_modules/rxjs-compat/_esm5'
[ng] ℹ 「wdm」: Failed to compile.
More detailed here:
[https://stackoverflow.com/q/52456642/9774790](http://Issue when running ionic serve)
My question is, what is the version for the modules (such as angular, firebase) that is compatible to ionic 4.1.2?
I put my version setup here, please let me know which ones should I upgrade/downgrade.
- Linux Mint 18 Cinnamon 64-bit
- ionic 4.1.2
- npm 6.4.1
- node v8.12.0
Here’s my package.json:
{
"name": "bin",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@angular/core": "^4.4.6",
"angular": "^1.7.0",
"angularfire2": "^5.0.0-rc.9",
"firebase": "^5.0.3",
"npm": "^6.4.1",
"rxjs": "^5.5.12",
"rxjs-compat": "^6.3.2",
"typescript": "^2.4.0"
}
}