Topic: After angular universal changes local dev changes is breaking
gauravrkc90 asked 5 years ago
I am adding angular universal to my project following the link below https://mdbootstrap.com/docs/angular/getting-started/angular-universal/
I add successfully but when u run the project using node SSR (Node server listening on http://localhost:4201) I get this error.
TypeError: common.ɵsetRootDomAdapter is not a function
Another big problem, I copied angular.json from the link of the universal guide - where the files below are missing
"node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
"node_modules/@fortawesome/fontawesome-free/scss/solid.scss",
"node_modules/@fortawesome/fontawesome-free/scss/regular.scss",
"node_modules/@fortawesome/fontawesome-free/scss/brands.scss",
"node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss",
"node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss",
"node_modules/animate.css/animate.css",
"node_modules/chart.js/dist/Chart.js",
"node_modules/easy-pie-chart/dist/easypiechart.js",
"node_modules/screenfull/dist/screenfull.js",
"node_modules/hammerjs/hammer.min.js"
so my project is completely breaking as there are no CSS files that MDB docs suggested on adding in angular.json.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.8.1
- Device: apple
- Browser: chrome
- OS: mac os
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 5 years ago
Please add more information about your configuration - MDB/Angular and other packages version, app module and ssr config.