You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Importing newMonetaryAmount and tokenSymbolToCurrency in tests using relative import from src/ index file is not working - functions are undefined. To resolve the issue, these have to be imported from utils folder separately which creates unwanted inconsistency in imports.
Error message example: TypeError: src_1.newMonetaryAmount is not a function
Additional context
This problem started occurring with #604 in which the monetary lib was updated to newer version. Both problematic functions are dependent on monetary.js
The text was updated successfully, but these errors were encountered:
Describe the bug
Importing
newMonetaryAmount
andtokenSymbolToCurrency
in tests using relative import fromsrc/
index file is not working - functions areundefined
. To resolve the issue, these have to be imported fromutils
folder separately which creates unwanted inconsistency in imports.Error message example:
TypeError: src_1.newMonetaryAmount is not a function
Additional context
This problem started occurring with #604 in which the monetary lib was updated to newer version. Both problematic functions are dependent on monetary.js
The text was updated successfully, but these errors were encountered: