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

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/e37ec4ff-4937-46ae-97b3-8411c4f1a319n%40googlegroups.com.

Reply via email to