Angular 9 Universal - Running Error: can not read property 'type' of undefined - TokenStream

Viewed 422

talents.

I am working on Angular 9 project.

My original project was Angular 9, Node.js, Express project.

I converted it to Angular Universal. enter image description here When I run "npm run dev:ssr", I see this kind of error.

This is my package.json.

"@angular-redux/store": "^10.0.0",
"@angular/animations": "^9.1.4",
"@angular/cdk": "^9.2.2",
"@angular/common": "~9.1.4",
"@angular/compiler": "~9.1.4",
"@angular/core": "~9.1.4",
"@angular/forms": "~9.1.4",
"@angular/material": "^9.2.2",
"@angular/platform-browser": "~9.1.4",
"@angular/platform-browser-dynamic": "~9.1.4",
"@angular/platform-server": "~9.1.4",
"@angular/router": "~9.1.4",
"@nguniversal/express-engine": "^9.1.1",
"@ngx-translate/core": "^12.1.2",
"@ngx-translate/http-loader": "^4.0.0",
"express": "^4.17.1",
"graphql-js-client": "^0.12.0",
"jquery": "^3.5.1",
"js-base64": "^3.6.0",
"localstorage-polyfill": "^1.0.1",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"ngx-device-detector": "^2.0.1",
"ngx-slick-carousel": "^0.5.1",
"ngx-toastr": "^12.0.1",
"node-fetch": "^2.6.1",
"npm-run-all": "^4.1.5",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
"redux-logger": "^3.0.6",
"redux-observable": "^1.2.0",
"rxjs": "~6.5.4",
"rxjs-compat": "^6.6.3",
"slick-carousel": "^1.8.1",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"

I`d really appreciate it if anyone can help me. Regards!

1 Answers
Related