U
U
ugar20002019-09-04 16:07:26
JavaScript
ugar2000, 2019-09-04 16:07:26

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

1 answer(s)
G
grinat, 2019-09-04
@grinat

Judging by the error, it does not load the manifest, therefore it does not plow https://developer.mozilla.org/ru/docs/Web/%D0%9C%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question