0

I try to expose an Angular front-end on the uri xxx.com/frontend/, and there is a n8n project on the url xxx.com.
I have these error logs :

enter image description here

I configure <base href="/frontend/" /> in the file index.html and the part scripts in the file package.json is like that :

"scripts": {
    "ng": "ng",
    "start": "ng serve --configuration dev --base-href /frontend/",
    "build": "ng build --configuration production --base-href /frontend/",
    "test": "ng test",
    "lint": "ng lint",
    "postinstall": "ngcc --tsconfig ./tsconfig.app.json"
  }
<head>
    <meta charset="utf-8" />
    <title>CMDB Integration Hub</title>
    <base href="/frontend/" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <meta http-equiv="Access-Control-Allow-Headers" content="*" />
    <link rel="icon" href="favicon.ico" />
</head>

If I write directly some html code in <body>, it will be display, but the content of <mic-root> is not displayed. I don't understand how to correct that because the files in the logs are auto generate. Thanks !

Minji
  • 1
  • 1

0 Answers0