Issues with Good theme JS plugins
I've set up Good Admin theme using the Django starter kit.
Every time any page is loaded I am getting the following in the console:
- DevTools failed to load source map: Could not load content for http://localhost:8000/static/plugins/global/toastr.js.map: HTTP error: status code 500, net::ERR_HTTP_RESPONSE_CODE_FAILURE
- DevTools failed to load source map: Could not load content for http://localhost:8000/static/plugins/custom/datatables/pdfmake.min.js.map: HTTP error: status code 500, net::ERR_HTTP_RESPONSE_CODE_FAILURE
- DevTools failed to load source map: Could not load content for http://localhost:8000/static/plugins/custom/vis-timeline/vis-timeline-graph2d.min.js.map: HTTP error: status code 500, net::ERR_HTTP_RESPONSE_CODE_FAILURE
The path is valid, because my static files live under /static/. E.g. the following works fine:
Any ideas on how to fix it?
Replies (4)
I've realized that I have note added the path that I said works fine. It was:
[22/Feb/2023 10:59:45] "GET /static/plugins/global/plugins.bundle.js HTTP/1.1" 200 3705491
Hi Giedrius
This issue happens because of the missing source map files. (toastr.js.map, pdfmake.min.js.map, etc.)
We will fix it in the bundle file.
Thanks
Great thanks - do you have a view on when the fix is going to be ready?
By the way, I am not sure if this is related, but I am also getting a bunch if type errors:
Uncaught TypeError: s is undefined
updateFieldStatus http://localhost:8000/static/plugins/global/plugins.bundle.js:26425
revalidateField http://localhost:8000/static/plugins/global/plugins.bundle.js:26425
initForm http://localhost:8000/static/js/custom/utilities/modals/new-target.js:26
trigger http://localhost:8000/static/plugins/global/plugins.bundle.js:57962
triggerChangeEvent http://localhost:8000/static/plugins/global/plugins.bundle.js:57962
debouncedUpdateTimeout http://localhost:8000/static/plugins/global/plugins.bundle.js:57962
Hi Giedrius
We will try to fix it as soon as possible and include it in the next release. You do not need to worry. It's just some warnings in the console log. It should not affect the front-end presentation. The source map is used for development.
This is probably a different error. How can we reproduce it? Do you have modified anything in the file or you have rebuilt the assets? Using which tool, either gulp or webpack?
Uncaught TypeError: s is undefined
Thanks