Hi,
When building and running in dev mode (yarn start:dev), the language selection itself works, but the German translation is not displayed, instead the actual field names are shown, e.g.
"menu.section.browse_global_communities_and_collections" is shown instead of the German equivalent for "Communities & Collections".
my src/environments/environment.dev.ts file:
export const environment = {
ui: {
ssl: false,
host: 'localhost',
port: 4000,
nameSpace: '/'
},
rest: {
ssl: false,
host: 'localhost',
port: 8080,
nameSpace: '/server'
},
defaultLanguage: 'de',
languages: [{
code: 'en',
label: 'English',
active: true,
},
{
code: 'de',
label: 'Deutsch',
active: true,
}]
};
I also tried production mode with a
src/environments/environment.dev.ts filewith contents equal to the dev file above.
While I had issues with the build getting stuck at ES5 bundles and requiring a retrigger before, I am now unable to rebuild production (
yarn run build:prod
) at all.
I keep getting the same issue:
Generating ES5 bundles for differential loading...
An unhandled exception occurred: Call retries were exceeded
See "/tmp/ng-pGiQLu/angular-errors.log" for further details.
error Command failed with exit code 127.
info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Contents of the mentioned log file:
[error] Error: Call retries were exceeded
at ChildProcessWorker.initialize (/dspace-angular/dspace-angular-dspace-7.1/node_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21)
at ChildProcessWorker._onExit (/dspace-angular/dspace-angular-dspace-7.1/node_modules/jest-worker/build/workers/ChildProcessWorker.js:274:12)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
I am a bit lost here on what I am doing wrong at this stage. Likely the solution for both issues is trivial.
Versions used for building and hosting the frontend:
Ubuntu 20.04
node.js 14.18.2
yarn 1.22.17
pm2 5.1.2
yarn install claims I am up to date.
Thank you for any hints