Dear members,
i use a docker container based on the node:8 image to create a test
instance of dspace 7 and the angular app. I start Angular with the call
yarn start:dev
When I login with the UI I get the following error message
Cannot read property 'authenticated' of undefined
With every call of the UI yarn gives the following error
Error: The server returned an invalid object
at
DSOResponseParsingService.BaseResponseParsingService.addToObjectCache
(/angular-src/dist/server.js:65296:19)
at DSOResponseParsingService.BaseResponseParsingService.cache
(/angular-src/dist/server.js:65291:18)
at DSOResponseParsingService.BaseResponseParsingService.process
(/angular-src/dist/server.js:65236:22)
at DSOResponseParsingService.parse
(/angular-src/dist/server.js:73213:38)
at MapSubscriber.project (/angular-src/dist/server.js:147350:234)
at MapSubscriber._next
(/angular-src/node_modules/rxjs/operators/map.js:79:35)
at MapSubscriber.Subscriber.next
(/angular-src/node_modules/rxjs/Subscriber.js:90:18)
at CatchSubscriber.Subscriber._next
(/angular-src/node_modules/rxjs/Subscriber.js:126:26)
at CatchSubscriber.Subscriber.next
(/angular-src/node_modules/rxjs/Subscriber.js:90:18)
at MapSubscriber._next
(/angular-src/node_modules/rxjs/operators/map.js:85:26)
The configuration file of the angular app environment.dev.js:
module.exports = {
// Angular Universal server settings.
ui: {
ssl: false,
host: '0.0.0.0',
port: 3000,
// NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
nameSpace: '/'
},
// The REST API server settings.
rest: {
ssl: false,
host: 'localhost',
port: 8080,
// NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
nameSpace: '/spring-rest/api'
},
...
I would be grateful if you could tell me what caused the error.
Regards
--
Stefan Fritzsche
Fachinformatiker/digitale Archivierung
Technische Universität Dresden
Zentrum für Informationsdienste und Hochleistungsrechnen
Abt: Operative Prozesse und Systeme
01062 Dresden
Tel.:
+49 351 463-33212
E-Mail:
stefan.f...@tu-dresden.de