Eray Bartan
Eray Bartan Blog

Eray Bartan Blog

Pass metadata error NFT collection on Solana with candymachine & metaplex

Eray Bartan's photo
Eray Bartan
·Dec 16, 2021·

1 min read

Pass metadata error NFT collection on Solana with candymachine & metaplex

Photo by Tezos on Unsplash

Subscribe to my newsletter and never miss my upcoming articles

I was stuck in section 3 in @_buildspace courses for 3 days.

Candy_Drop_1.png I chatted with @codeperfect in the Solana discord group. The first answer I got from him.

this is because you're trying to use Metadata without importing it you need to import Metadata to be able to use it

So we don't do this with this code?

import { programs } from '@metaplex/js';

@codeperfect replied like this.

Yes, but you still need to import Metadata somewhere or define it somewhere because currently, Metadata is undefined, which is why it's throwing you an error

Today, I saw this error in the section3 group on the @_buildspace discord channel.


Solution: The error about the latest version of metaplex, so you need to uninstall the current version of metaplex and install an older one.

Executing these commands in the terminal should do the work:

npm uninstall @metaplex/js
npm install @metaplex/js@4.7.0

My version 4.7.0 was in my package.json file, but it worked.

I need to be in discord groups of web3 topics.

It is much more helpful to try to do a double major with Solana and solidity languages.

I have not dealt with the React library beforehand increases my speed.

Thanks for reading.

Share this


Technical Specialties

  • React Native App Development
  • Neo4j Graph Database Beginner Developer
  • Google Data Studio Dashboard Design
  • Micosoft Power BI Dashboard Design

Industry Experience

  • Municiapilty (IT Department, Data Analyst)
  • Real Estate (Web Design, Social Media Publisher, Mailchimp Automation)
  • Hotels & Restaurants (Web Design, Google Ads , Facebook Ads)
  • Sports (Web Design, Mailchimp Campaign)