Issue
Attempting to follow the 'your first request' example here: https://docs.metaplex.com/sdk/js/getting-started#your-first-request
The module referred to in the examples doesn't contain the data needed.
For context, I am using this example to develop the solution explained at step 5 of these instructions: https://gist.github.com/creativedrewy/9bce794ff278aae23b64e6dc8f10e906
Steps to replicate
Step 1) I install the @metaplex/js
package via: yarn add @metaplex/js
Step 2) I import programs
from the module by placing import { programs } from '@metaplex/js';
.
Step 3) I attempt to unpack Metadata
from programs via: const { Metadata } = programs.metadata;
At this stage, if I execute npm run start
or yarn run start
I see the error that the property Metadata
of programs.metadata
is undefined. When I look in node_modules/@metaplex/js/
I see that the error is correct.
The only mention of metadata in the module is the function used to lookup metadata once you have the URL. The stage I am at is attempting to retrieve the URL, so this package is not useful, despite being the only one referred to in the docs.