DEV Community

Discussion on: How to Mint an NFT with JavaScript

Collapse
stefanpt profile image
Stefanpt

So glad you did this article
Im getting the following though?
.setTokenType(TokenType.NonFungibleUnique)
^

TypeError: Cannot read property 'NonFungibleUnique' of undefined

Collapse
0xjepsen profile image
Waylon Jepsen Author

Hmm it could be a few different things. Be sure to import TokenType from hedera sdk at the top. What version of the SDK are you using?