-
Hi, I'm getting the following error: 'TypeError: chain_info_deployments_map_json__WEBPACK_IMPORTED_MODULE_2_[stringChainId] is undefined' Some help on how to fix this would be great. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @sk67dev did you import it correctly?
this should be on Could you copy-past your code here so we cant give it a check? Also take in consideration this: The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type. A TypeError may be thrown when: an operand or argument passed to a function is incompatible with the type expected by that operator or function; or |
Beta Was this translation helpful? Give feedback.
Hi @sk67dev did you import it correctly?
import networkMapping from "../chain-info/deployments/map.json"
this should be on
defi-stake-yield-brownie-freecode/front_end/src/components/Main.tsx
Could you copy-past your code here so we cant give it a check?
Also take in consideration this:
The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.
A TypeError may be thrown when:
an operand or argument passed to a function is incompatible with the type expected by that operator or function; or
when attempting to modify a value that cannot be changed; or
when attempting to use a value in an inappro…