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

Error Selecting Mongolian Tugrik Currency and Region in Medusa 2.0: 'Cannot read properties of undefined (reading 'name')' #9093

Open
Tales-of-zuna opened this issue Sep 11, 2024 · 0 comments

Comments

@Tales-of-zuna
Copy link

System information

Medusa version (including plugins): 2.0
Node.js version: v20.17.0
Database: localhost / Postgres
Operating system: Ubuntu 24.04

Steps to reproduce the behavior

  1. Set up a new Medusa 2.0 backend and starter website.
  2. Add a new currency, specifically Mongolian Tugrik (MNT).
  3. Create a new region and include Mongolia in it.
  4. Attempt to select Mongolian Tugrik as the currency for this new region in the admin dashboard.
  5. Encounter the error.

Actual behavior

When attempting to select Mongolian Tugrik and include Mongolia as a region, an error is thrown: Uncaught runtime errors: Cannot read properties of undefined (reading 'name').
The error occurs in the following files:

http://localhost:7001/node_modules_moment_locale_sync_recursive_-_cache_admin_src_pages_a_tsx.chunk.js:1141:4798
http://localhost:7001/main.bundle.js:510:55325
http://localhost:7001/main.bundle.js:510:93877
http://localhost:7001/main.bundle.js:510:111992

Additional related stack traces are shown in the error message.

Expected behavior

The system should allow selection of Mongolian Tugrik (MNT) as a valid currency and apply it to the Mongolian region without throwing errors.
The admin dashboard should reflect the new currency and region configuration correctly.

Additional Information

Other currencies and regions can be added and selected without issues.
The error seems specific to the Mongolian Tugrik currency and Mongolia region configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant