data.gov
data.gov copied to clipboard
undefined module in datagovtheme extension.js bundle
Identify issue in uswds.js
Error occurs when navigating to a package page.
How to reproduce
Navigate to a package page. For example
Expected behavior
No error message in the console and the "other data resources" section to be visible for a package harvested by geoplatform.
Actual behavior
Error message in the console and no "other data resources" section visible for a package harvested by geoplatform.
Sketch
- [ ] Upgrade USWDS to current latest version
- [ ] Also, attempt to vendor NPM packages in the correct way so we can install updates automatically, similar to this method here: https://stackoverflow.com/questions/24514936/how-can-i-serve-npm-packages-using-flask
- [ ] Check if issue resolves itself after the above.
- [ ] If not, file a bug with USWDS
the function causing the issue looks like it's been minified so it's difficult to read. i'm not familiar with that script/function so i can't immediately determine what the potential issues could be.
some background on how to bump the version of USWDS. https://github.com/uswds/uswds#install-the-package-directly-from-github
glad to pair on this for a sanity check whenever this gets picked up.
see for more context https://github.com/GSA/data.gov/issues/3478