Hello everyone.
I have a problem with compiling the new web app.
I'm probably doing something wrong, I'll try to explain the steps I've taken.
I downloaded the source code backend in c:
Then the web sorce code in C: \ traccar-master \ traccar-web
I start "Bash" and I entered the folder C: \ traccar-master \ traccar-web \ and from there I launched "npm install" and I waited for it to finish downloading all the dependencies, then "npm run"
then I tried to go to "localhost: 8082" and the legacy version worked fine.
Finally I ran "npm run build" which completed everything successfully.
Then I tried to compile the new version by going to C: \ traccar-master \ traccar-web \ modern and from there I launched "npm install" and waited for it to finish downloading all the dependencies, then "npm run"
Finally I ran "npm run build" and it fails
luca @ Surface-PC: / mnt / c / traccar-master / traccar-web / modern $ npm run build
> traccar@5.3.0 build
> react-scripts build
Creating an optimized production build ...
Failed to compile.
Module not found: Error: Can't resolve '../../resources/l10n/af.json' in '/ mnt / c / traccar-master / traccar-web / modern / src / common / components'
What am I doing wrong?
Thank you
You're missing the symlink to the l10n folder. Common problem on Windows if you haven't configured git correctly.
Hello everyone.
I have a problem with compiling the new web app.
I'm probably doing something wrong, I'll try to explain the steps I've taken.
I downloaded the source code backend in c:
Then the web sorce code in C: \ traccar-master \ traccar-web
I start "Bash" and I entered the folder C: \ traccar-master \ traccar-web \ and from there I launched "npm install" and I waited for it to finish downloading all the dependencies, then "npm run"
then I tried to go to "localhost: 8082" and the legacy version worked fine.
Finally I ran "npm run build" which completed everything successfully.
Then I tried to compile the new version by going to C: \ traccar-master \ traccar-web \ modern and from there I launched "npm install" and waited for it to finish downloading all the dependencies, then "npm run"
Finally I ran "npm run build" and it fails
What am I doing wrong?
Thank you