TypeError: Cannot read properties of undefined (reading 'replace')

controlsat2 months ago

When I select the icon or badge from the list, I get this error. Any ideas?

TypeError: Cannot read properties of undefined (reading 'replace')
    at d2 (ht3.:8082/assets/index-BdbJhsa0.js:239:29222)
    at nL (113.:8082/assets/index-BdbJhsa0.js:38:17031)
    at gK (ht.113.:8082/assets/index-BdbJhsa0.js:40:44104)
    at mK (h113.:8082/assets/index-BdbJhsa0.js:40:39822)
    at Wne (ht.113.:8082/assets/index-BdbJhsa0.js:40:39748)
    at SM (h8.113.:8082/assets/index-BdbJhsa0.js:40:39598)
    at V1 (h48.113.:8082/assets/index-BdbJhsa0.js:40:35960)
    at MB (ht113.:8082/assets/index-BdbJhsa0.js:40:36765)
    at Ap (h8082/assets/index-BdbJhsa0.js:38:3288)
    at h4.:8082/assets/index-BdbJhsa0.js:40:34286
Anton Tananaev2 months ago

Are you using the latest official release without any code modifications?

controlsat2 months ago

I am using official version 6.6 without code modification except traccar.xml to work with mariadb.

Anton Tananaev2 months ago

My guess would be that you have invalid navigationAppLink set.

controlsat2 months ago

to close the case; the problem was with the database.

Anton Tananaev2 months ago

What was the problem with the database?

DanylovVG2 months ago

when i'm update, this error check too

TypeError: Cannot read properties of undefined (reading 'replace')

DanylovVG2 months ago

error in old db, make new and all working

Luis Lepea month ago

You where right Anton, I had the same problem yesterday and I fixed it by adding the "Navigation app Link" in the server attributes.
My mistake was adding the "Navigation app title" without setting the "Navigation app Link"

Just so anyone getting this error might get an easier time than I did, I had to dig thru the code to partially understand what was happening.

Anton Tananaeva month ago

What was the purpose of adding one without the other?

Luis Lepea month ago

A lack of knowledge.

I saw in vite.config.js that title an description where needed for the manifest so I added those and missed the navigation link configuration since it was not mentioned in that file.

Anton Tananaeva month ago

"Navigation app title" is not mentioned nor referenced anywhere in the vite config. It seems like you confused it with the server name or description.

https://www.traccar.org/branding-web/

Luis Lepea month ago

So I did, thanks for clearing the misunderstanding.