Topic: Error compiling template ng-admin-pro-6.1.1
birmain pro answered 7 years ago
Damian Gemza staff commented 7 years ago
I'm unable to reproduce your case. Could you try to remove typescript, @angular/cli and @angular/compiler-cli from package.json dependencies and try one more time to remove node_modules. package-lock.json and npm install? It should help with this case. Best Regards, Damianalain.deurveilher@gmail.com pro commented 7 years ago
Damian, I just tried exactly that with the version 6.1.2 and I have the issue. (I was about to create a new issue, but saw that this one was already created). Additionally to removing the dups I also used a fixed version of TypeScript: "typescript": "2.7.2" to fix another compilation error. But the error is there. Because the package in angular-calendar still import Subject from 'rxjs/Subject', Subscription from 'rxjs/Subscription', etc. while they all must be imported from just 'rxjs' as you already know. Because of this package not updated to rxjs 6, I think you need to add the rxjs-compat dependency ?birmain pro commented 7 years ago
The same error persists. The cause I think is the one commented by the user alain.deurveilher@gmail.comDamian Gemza staff commented 7 years ago
Dear Alain, Birmain, Could you guys please try to install rxjs-compat? It should fix your problem, but I'm unable to reproduce your problems, because for me, with MDB Angular Admin Template Pro zip everything is working just fine. Please let me know. Best Regards, Damianalain.deurveilher@gmail.com pro commented 7 years ago
In the end, I removed the node_modules folder, the package-lock.json, used the fixed version "0.25.2" of angular-calendar, and re npm i everything. The problem was gone, all was working perfectly ! My goal was to try to build for production (ng build --configuration=production) and it's all good. Thanks.birmain pro commented 7 years ago
The solution has been to unzip an original folder from ng-admin-pro-6.1.2. After: npm install rxjs-compat npm install once finished it compiles perfectlyFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Damian Gemza staff commented 7 years ago
Dear birmain, Could you please provide me reproduction steps? ng-admin-pro was checked for errors, and we didn't see any of those. Best Regards, Damian