Closed bengchet closed 7 years ago
Which version of ionic and angular2-mqtt do you use?
Maybe it's because ionic uses angular 2.2.1 and angular2-mqtt uses angular ^2.4.1 I will have a look and see, if I could set a lower version without problems.
I also found this, using google with the actual error message https://forum.ionicframework.com/t/build-error-cant-find-symbol-keyregistry/72811/3 Maybe this helps.
Hi thanks for reply. This is the package.json I am using.
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"angular2-highcharts": "^0.4.1",
"angular2-mqtt": "^1.5.0",
"ionic-angular": "^2.0.0-rc.5",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"web-mqtt-client": "^1.3.0",
"zone": "^0.3.4",
"zone.js": "0.6.26"
},
I have followed the instructions according to the link provided. But the problem still exists. May be the instructions didn't show how to install latest angular? It just shows npm install ionic-angular@latest, I don't know if it is the same as the 'angular' you are mentioning.
Does the new version 1.5.1 fix your problem?
Yes, totally fixed the problem. Many thanks!
Hi, first of all thanks for your awesome lib, because it is quite hard to find mqtt lib for angular2. Currently I am testing it with Ionic2 and trying to build an Android App for it. Everything is working fine until I got the following error when I was running the command ionic build android --prod
When I am running the command ionic build android without "--prod" the compilation is okay. Hope you can give some insights on this issue because I am quite new to angular2 and I might miss something.
Below is my code.
Thanks.