Dspace 7 fron end

77 views
Skip to first unread message

Stevenson Gossage

unread,
Dec 7, 2021, 11:31:32 AM12/7/21
to DSpace Technical Support
Not sure where to look but I have 2 Front-ends one vanilla Dspace 7 and the other one is customized Dspace 7 front-end but, when I try to run my modified UI, instead the vanilla Dspace one loads and connects to my backend without issue everything works -- just the wrong UI. 
To troubleshoot I altered the path to the vanilla DSpace and now when I try to load my modified UI, I get errors about the path not existing (as expected).
The environment.ts was generated correctly and the path error from the pm2 logs indicate that the root = /opt/ospr/dspace-angular/dist/ but that path no longer exists, the actual error from the logs is the following:
/.pm2/logs/dspace-angular-error.log last 30 lines:
0|dspace-a | Error in SSR, serving for direct CSR.
0|dspace-a | Error details :  Error: Failed to lookup view "index.html" in views directory "/opt/ospr/dspace-angular/dist/browser"
0|dspace-a |     at Function.render (/opt/ospr/dspace-angular/dist/server.js:23775:17)
0|dspace-a |     at ServerResponse.render (/opt/ospr/dspace-angular/dist/server.js:33302:7)
0|dspace-a |     at ngApp (/opt/ospr/dspace-angular/dist/server.js:220:13)
0|dspace-a |     at Layer.handle [as handle_request] (/opt/ospr/dspace-angular/dist/server.js:25565:5)
0|dspace-a |     at next (/opt/ospr/dspace-angular/dist/server.js:25313:13)
0|dspace-a |     at Route.dispatch (/opt/ospr/dspace-angular/dist/server.js:25288:3)
0|dspace-a |     at Layer.handle [as handle_request] (/opt/ospr/dspace-angular/dist/server.js:25565:5)
0|dspace-a |     at /opt/ospr/dspace-angular/dist/server.js:24788:22
0|dspace-a |     at param (/opt/ospr/dspace-angular/dist/server.js:24861:14)
0|dspace-a |     at param (/opt/ospr/dspace-angular/dist/server.js:24872:14) {
0|dspace-a |   view: View {
0|dspace-a |     defaultEngine: 'html',
0|dspace-a |     ext: '.html',
0|dspace-a |     name: 'index.html',
0|dspace-a |     root: '/opt/ospr/dspace-angular/dist/browser',
0|dspace-a |     engine: [Function (anonymous)],
0|dspace-a |     path: undefined
0|dspace-a |   }
0|dspace-a | }
0|dspace-a | Error: ENOENT: no such file or directory, stat '/opt/ospr/dspace-angular/dist/browser/index.html'

Not sure where I need to make changes necessary to point to the correct path.


Thanks

Reply all
Reply to author
Forward
0 new messages