Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/WG-373: fix deployed react app #252

Merged
merged 7 commits into from
Aug 31, 2024

Conversation

nathanfranklin
Copy link
Collaborator

@nathanfranklin nathanfranklin commented Aug 28, 2024

Overview:

React app was failing on deployed environments (react-datepicker.fb796e48.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'exports') at react-datepicker.fb796e48.js:1:605).

The main fix is to set esModuleInterop to true (esModuleInterop is a TypeScript compiler option improves interoperability between CommonJS and ES Modules)

PR Status:

  • Ready.

Related Jira tickets:

relates to TACC-Cloud/geoapi#214

Testing Steps:

  1. Visit https://hazmapper.tacc.utexas.edu/dev-react

Copy link
Contributor

@taoteg taoteg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! tested in the dev site against a new map, image embed and accessing the same map in the react client.

@nathanfranklin nathanfranklin merged commit f318a7c into main Aug 31, 2024
5 checks passed
@nathanfranklin nathanfranklin deleted the task/WG-373-fix-deployed-react-app branch August 31, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants