Answer the question
In order to leave comments, you need to log in
PWA only works in ROOT Tomcat. What's wrong?
We are developing a web application. Added ngsw and everything due to it. On the localhost it works fine, on the remote it works only in the ROOT directory of the tomcat. And the base address was changed, and ngsw-confsg was configured, but nothing. And our back in ROOT does not want to work. What's wrong? Are we stupid or PWA from Angular can't work in other directories?
ngsw-config (base-href=/inspector/):
{
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"updateMode" : "prefetch",
"resources": {
"files": [
"/favicon.ico",
]
}
}
]
}
And it gives an error, by the way. The reason for this is xs.
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question