data.gov icon indicating copy to clipboard operation
data.gov copied to clipboard

undefined module in datagovtheme extension.js bundle

Open rshewitt opened this issue 1 year ago • 3 comments

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

rshewitt avatar Dec 12 '23 16:12 rshewitt

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.

rshewitt avatar Dec 12 '23 16:12 rshewitt

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.

btylerburton avatar Dec 13 '23 20:12 btylerburton

see for more context https://github.com/GSA/data.gov/issues/3478

btylerburton avatar Dec 21 '23 18:12 btylerburton