metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.25k forks source link

Error running yarn build #817

Closed spvn closed 2 years ago

spvn commented 3 years ago
PS C:\Projects\nft-experiment\metaplex\js> yarn build
yarn run v1.22.17
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 5.7s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna ERR! yarn run build stdout:
$ tsc -p ./src
../../node_modules/@types/three/src/renderers/WebGLRenderer.d.ts(38,34): error TS2304: Cannot find name 'OffscreenCanvas'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm getting this error when running yarn build. Typescript is definitely installed and tsc --version shows 4.4.4. Any ideas what I'm doing wrong? I've already called yarn install and yarn bootstrap before this.

siarhen commented 3 years ago

xd, im thinking now why build didn't work

spvn commented 3 years ago

xd, im thinking now why build didn't work

Do you have the same error about ../../node_modules/@types/three/src/renderers/WebGLRenderer.d.ts(38,34): error TS2304: Cannot find name 'OffscreenCanvas'.?

siarhen commented 3 years ago

xd, im thinking now why build didn't work

Do you have the same error about ../../node_modules/@types/three/src/renderers/WebGLRenderer.d.ts(38,34): error TS2304: Cannot find name 'OffscreenCanvas'.?

sure

faruqmr commented 3 years ago

me too, got the same issue

spvn commented 3 years ago

This is so strange. I had just setup metaplex yesterday on a separate machine and running yarn build was fine.

siarhen commented 3 years ago

image

carthanas commented 3 years ago

https://github.com/metaplex-foundation/metaplex/pull/773/commits/492d2df87ddbb6bd84a6c4bd45d20a2d6de90bfa

4,715 additions, 5,411 deletions not shown because the diff is too large.

Large change to yarn lock using yarnpkg instead of npmjs.org

Possibly some dependeny changes in there that were unintended.

carthanas commented 3 years ago

Made an attempt at a fix here https://github.com/metaplex-foundation/metaplex/pull/819

Reverting the yarn.lock to an earlier build should work as a temporary fix for anyone blocked. EG

git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock

peterschwarzdev commented 3 years ago

Same problem here, I tried an older master version (about 2 days ago) and it worked fine.

mmazzariol commented 3 years ago

Same. How can I download an older version?

ozornak commented 3 years ago

you can change the yarn version using: yarn policies set-version (version number)

ozornak commented 3 years ago

you can change the yarn version using: yarn policies set-version (version number)

but it doesn't help either) the same mistake

mmazzariol commented 3 years ago

you can change the yarn version using: yarn policies set-version (version number)

but it doesn't help either) the same mistake

Thanks and bummer it doesn't help. It's maddening. Lol

carthanas commented 3 years ago

Its not the yarn version. Its the entire yarn.lock file which has been upgraded by accident in the https://github.com/metaplex-foundation/metaplex/commit/492d2df87ddbb6bd84a6c4bd45d20a2d6de90bfa commit

ozornak commented 3 years ago

Its not the yarn version. Its the entire yarn.lock file which has been upgraded by accident in the 492d2df commit

do you know how to solve this..?

CryptoniteMining commented 3 years ago

Im also stuck on this step. I've tried many things and at this point im afraid i messed up other things in the code

CryptoniteMining commented 3 years ago

lerna ERR! yarn run build exited 1 in 'candy-machine-mint'

That is currently the error I receive

carthanas commented 3 years ago

Its not the yarn version. Its the entire yarn.lock file which has been upgraded by accident in the 492d2df commit

do you know how to solve this..?

I answered in the thread already.

This is my PR fix rolling back the yarn.lock https://github.com/metaplex-foundation/metaplex/commit/492d2df87ddbb6bd84a6c4bd45d20a2d6de90bfa

mmazzariol commented 3 years ago

Its not the yarn version. Its the entire yarn.lock file which has been upgraded by accident in the 492d2df commit

do you know how to solve this..?

I answered in the thread already.

This is my PR fix rolling back the yarn.lock 492d2df

Thanks for the help. How can I get the yarn.lock file before the changes?

aheckmann commented 3 years ago

Thank you for reporting this. Taking a look.

markm1992 commented 3 years ago

It's only missing the types dependency. Just run locally.... yarn add @types/offscreencanvas

The devs will probably add it back in the next commit :)

felipelincoln commented 3 years ago

Or you can delete your node_modules/ folder and it just works

CryptoniteMining commented 3 years ago

Or you can delete your node_modules/ folder and it just works

I did this, but now my tsconfig.json has an error saying "No inputs were found in config file 'c:/Users/xxxx/OneDrive/Desktop/Code/metaplex-master/js/tsconfig.json'. Specified 'include' paths were '["src/*/"]' and 'exclude' paths were '[]'."

Any help?

aheckmann commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

CryptoniteMining commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

I'll give this a try in about an hour. To reproduce the issue just watch HashLips video for putting an NFT collection on Solana. I'll keep everyone here posted I'm going to delete the node_modules again and see how it works.

mmazzariol commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

Here it's what's been happening to me after i run "yarn build"

error
catalt98 commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

Here it's what's been happening to me after i run "yarn build"

error

Getting the exact same error, going crazy over here

scotig33 commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

Here it's what's been happening to me after i run "yarn build"

error

Getting the exact same error, going crazy over here

has anyone figured this out?

scotig33 commented 3 years ago

I couldn't reproduce. I generally recommend @felipelincoln's advice

Or you can delete your node_modules/ folder and it just works

If that doesn't work, try cloning the repo again. If you are still having trouble, please share the exact steps I should follow to reproduce the issue.

we run yarn build inside js folder and get the error. It stopped working after the update, need to fix ASAP

CryptoniteMining commented 3 years ago

I am only receiving this error now. Any Ideas? code error

carthanas commented 3 years ago

Seeing a lot of people complaining about yarn build not working in various ways.

Guys I'm almost certain I've fixed this in the PR here https://github.com/metaplex-foundation/metaplex/pull/819.

Can anyone who has a broken build checkout the branch carthanas:carthanas/fix-yarn-build and test it?

With an existing broken respository

cd js/
yarn cache clean
lerna clean -y
yarn install
lerna bootstrap

yarn build

And maybe ping somebody who has the authority to test it, review it and merge it.

RathTB commented 3 years ago

tried all of above to get the following web failed to compile

`yarn run v1.22.17
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 6.0s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna info run Ran npm script 'build' in '@metaplex/cli' in 11.5s:
$ tsc -p ./src
lerna ERR! yarn run build exited 1 in 'web'
lerna ERR! yarn run build stdout:
$ next build
info  - Loaded env from C:\Users\rath_\Desktop\NFT\metaplex-master\js\packages\web\.env.production
info  - Loaded env from C:\Users\rath_\Desktop\NFT\metaplex-master\js\packages\web\.env
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - Checking validity of types...
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
Failed to compile.

./src/views/analytics/index.tsx:253:34
Type error: Type '{ scales: { yAxes: { ticks: { beginAtZero: boolean; }; }[]; }; }' is not assignable to type '_DeepPartialObject<CoreChartOptions<"bar"> & ElementChartOptions<"bar"> & PluginChartOptions<"bar"> & DatasetChartOptions<"bar"> & ScaleChartOptions<...> & BarControllerChartOptions>'.
  Types of property 'scales' are incompatible.
    Type '{ yAxes: { ticks: { beginAtZero: boolean; }; }[]; }' is not assignable to type '_DeepPartialObject<{ [key: string]: ScaleOptionsByType<keyof CartesianScaleTypeRegistry>; }>'.
      Property 'yAxes' is incompatible with index signature.
        Type '{ ticks: { beginAtZero: boolean; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & CartesianScaleOptions & { bounds: "data" | "ticks"; adapters: { date: unknown; }; time: { parser: string | ((v: unknown) => number); round: false | TimeUnit; ... 5 more ...; minUnit: TimeUnit; }; ticks: { ...; }; }> | ... 4 more ... | undefined'.
          Type '{ ticks: { beginAtZero: boolean; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "timeseries"; } & CartesianScaleOptions & { bounds: "data" | "ticks"; adapters: { date: unknown; }; time: { parser: string | ((v: unknown) => number); round: false | TimeUnit; ... 5 more ...; minUnit: TimeUnit; }; ticks: { ...; }; }>'.
            Types of property 'reverse' are incompatible.
              Type '() => { ticks: { beginAtZero: boolean; }; }[]' is not assignable to type 'boolean | undefined'.
                Type '() => { ticks: { beginAtZero: boolean; }; }[]' is not assignable to type 'true'.

  251 |     };
  252 | 
> 253 |     return <Bar data={histoData} options={histoOptions} />;
      |                                  ^
  254 |   },
  255 | );
  256 | 
error Command failed with exit code 1.

lerna ERR! yarn run build exited 1 in 'web'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
carthanas commented 3 years ago

@RathTB You checked out my branch before running it right?

RathTB commented 3 years ago

@carthanas ive just started again fresh doing the following


PS C:\Users\rath_\Desktop\NFT> git clone https://github.com/carthanas/metaplex.git
Cloning into 'metaplex'...
remote: Counting objects: 100% (649/649), done.
remote: Compressing objects: 100% (284/284), done.
remote: Total 17608 (delta 433), reused 548 (delta 363), pack-reused 16959
Receiving objects: 100% (17608/17608), 41.40 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (11008/11008), done.
PS C:\Users\rath_\Desktop\NFT> cd metaplex
PS C:\Users\rath_\Desktop\NFT\metaplex> cd js
yarn cache v1.22.15
success Cleared cache.
Done in 13.61s.
PS C:\Users\rath_\Desktop\NFT\metaplex\js> lerna clean -y
lerna notice cli v4.0.0
lerna info versioning independent
lerna info clean removing C:\Users\rath_\Desktop\NFT\metaplex\js\packages\cli\node_modules
lerna info clean removing C:\Users\rath_\Desktop\NFT\metaplex\js\packages\common\node_modules
lerna info clean removing C:\Users\rath_\Desktop\NFT\metaplex\js\packages\fair-launch\node_modules
lerna info clean removing C:\Users\rath_\Desktop\NFT\metaplex\js\packages\web\node_modules
lerna success clean finished
PS C:\Users\rath_\Desktop\NFT\metaplex\js> yarn install
yarn install v1.22.15
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info @next/swc-darwin-arm64@11.1.2: The platform "win32" is incompatible with this module.
info "@next/swc-darwin-arm64@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-darwin-arm64@11.1.2: The CPU architecture "x64" is incompatible with this module.
info @next/swc-darwin-x64@11.1.2: The platform "win32" is incompatible with this module.
info "@next/swc-darwin-x64@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-linux-x64-gnu@11.1.2: The platform "win32" is incompatible with this module.
info "@next/swc-linux-x64-gnu@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "next > styled-jsx > @babel/plugin-syntax-jsx@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/helper-compilation-targets@7.15.4" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-async-generators@7.8.4" has unmet 
peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-class-properties@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-json-strings@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-logical-assignment-operators@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-nullish-coalescing-operator@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-numeric-separator@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-optional-catch-binding@7.8.3" has 
unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-optional-chaining@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-top-level-await@7.14.5" has unmet 
peer dependency "@babel/core@^7.0.0-0".
warning "lerna > @lerna/version > @lerna/github-client > @octokit/rest > @octokit/plugin-request-log@1.0.4" has unmet peer dependency "@octokit/core@>=3".      
warning " > ts-jest@24.3.0" has incorrect peer dependency "jest@>=24 <25".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env@7.15.8" has unmet peer dependency "@babel/core@^7.0.0-0".warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-typescript@7.15.0" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @solana/wallet-adapter-material-ui@0.8.3" has incorrect peer dependency "@solana/wallet-adapter-react@^0.8.3".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > less-loader@10.2.0" has unmet peer dependency "webpack@^5.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > react-virtualized@9.22.3" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > react-virtualized@9.22.3" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > @typechain/ethers-v4@1.0.1" has unmet peer dependency "typechain@^2.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > @typechain/ethers-v4@1.0.1" has unmet peer dependency "ethers@^4.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".     
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @aws-sdk/client-s3 > @aws-sdk/middleware-sdk-s3@3.38.0" has unmet peer dependency "@aws-sdk/signature-v4-crt@^3.31.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.15.4" has unmet peer dependency "@babel/core@^7.13.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-async-generator-functions@7.15.8" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-class-properties@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-class-static-block@7.15.4" has unmet peer dependency "@babel/core@^7.12.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-dynamic-import@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-export-namespace-from@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-json-strings@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-logical-assignment-operators@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-nullish-coalescing-operator@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-numeric-separator@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-object-rest-spread@7.15.6" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-optional-catch-binding@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-optional-chaining@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-private-methods@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-private-property-in-object@7.15.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-class-static-block@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-dynamic-import@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-export-namespace-from@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-syntax-private-property-in-object@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-arrow-functions@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-async-to-generator@7.14.5" has 
unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-block-scoped-functions@7.14.5" 
has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-block-scoping@7.15.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-classes@7.15.4" has unmet peer 
dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-computed-properties@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-destructuring@7.14.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-dotall-regex@7.14.5" has unmet 
peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-duplicate-keys@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-exponentiation-operator@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-for-of@7.15.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-function-name@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-literals@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-member-expression-literals@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-modules-amd@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-modules-commonjs@7.15.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-modules-systemjs@7.15.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-modules-umd@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-named-capturing-groups-regex@7.14.9" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-new-target@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-object-super@7.14.5" has unmet 
peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-parameters@7.15.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-property-literals@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-regenerator@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-reserved-words@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-shorthand-properties@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-spread@7.15.8" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-sticky-regex@7.14.5" has unmet 
peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-template-literals@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-typeof-symbol@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-unicode-escapes@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-transform-unicode-regex@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/preset-modules@0.1.5" has unmet peer dependency 
"@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > babel-plugin-polyfill-corejs2@0.2.2" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > babel-plugin-polyfill-corejs3@0.2.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > babel-plugin-polyfill-regenerator@0.2.2" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-typescript > @babel/plugin-transform-typescript@7.15.8" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > @solana/spl-name-service > crypto-ts@1.0.2" has unmet peer dependency "@angular/common@>= 5.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > @solana/spl-name-service > crypto-ts@1.0.2" has unmet peer dependency "@angular/core@>= 5.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > @solana/spl-name-service > webpack-dev-server@3.11.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > magic-sdk > @magic-sdk/commons@1.2.1" has incorrect peer dependency "@magic-sdk/provider@^4.3.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > magic-sdk > @magic-sdk/commons@1.2.1" has incorrect peer dependency "@magic-sdk/types@^3.1.1".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > web > webpack-dev-server > webpack-dev-middleware@3.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-class-properties > @babel/helper-create-class-features-plugin@7.15.4" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex > @babel/helper-create-regexp-features-plugin@7.14.5" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-env > babel-plugin-polyfill-corejs2 > @babel/helper-define-polyfill-provider@0.2.3" has unmet peer dependency "@babel/core@^7.4.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @metaplex/cli > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin@0.9.5" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin-ed25519@0.9.5" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin@0.10.2" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin-ed25519@0.10.2" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin > @toruslabs/http-helpers@1.4.0" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin > @toruslabs/openlogin-jrpc@0.9.5" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > @oyster/common > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin > @toruslabs/openlogin-utils@0.9.5" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin > @toruslabs/openlogin-jrpc@0.10.2" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-fec56726-1976-4cc8-973d-a264cf0b6133 > candy-machine-mint > @solana/wallet-adapter-wallets > @solana/wallet-adapter-torus > @toruslabs/openlogin > @toruslabs/openlogin-utils@0.10.2" has unmet peer dependency "@babel/runtime@7.x".
[5/5] Building fresh packages...
Done in 98.26s.
PS C:\Users\rath_\Desktop\NFT\metaplex\js> lerna bootstrap
info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info bootstrap root only
yarn install v1.22.15
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.87s.
PS C:\Users\rath_\Desktop\NFT\metaplex\js> yarn build
yarn run v1.22.15
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 8.6s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna ERR! yarn run build stdout:
$ tsc -p ./src
../../node_modules/@types/three/src/renderers/WebGLRenderer.d.ts(38,34): error TS2304: Cannot find name 'OffscreenCanvas'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

back to the old error now

RathTB commented 3 years ago

@carthanas if i run yarn add @types/offscreencanvas -W then build i get

yarn run v1.22.15
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 9.0s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna info run Ran npm script 'build' in '@metaplex/cli' in 11.8s:
$ tsc -p ./src
lerna ERR! yarn run build exited 1 in 'web'
lerna ERR! yarn run build stdout:
$ next build
info  - Loaded env from C:\Users\rath_\Desktop\NFT\metaplex\js\packages\web\.env.production
info  - Loaded env from C:\Users\rath_\Desktop\NFT\metaplex\js\packages\web\.env
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - Checking validity of types...
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
Failed to compile.

./src/views/analytics/index.tsx:253:34
Type error: Type '{ scales: { yAxes: { ticks: { beginAtZero: boolean; }; }[]; }; }' is not assignable to type '_DeepPartialObject<CoreChartOptions<"bar"> & ElementChartOptions<"bar"> & PluginChartOptions<"bar"> & DatasetChartOptions<"bar"> & ScaleChartOptions<...> & BarControllerChartOptions>'.
  Types of property 'scales' are incompatible.
    Type '{ yAxes: { ticks: { beginAtZero: boolean; }; }[]; }' is not assignable to type '_DeepPartialObject<{ [key: string]: ScaleOptionsByType<keyof CartesianScaleTypeRegistry>; }>'.
      Property 'yAxes' is incompatible with index signature.
        Type '{ ticks: { beginAtZero: boolean; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & CartesianScaleOptions & { bounds: "data" | "ticks"; adapters: { date: unknown; }; time: { parser: string | ((v: unknown) => number); round: false | TimeUnit; ... 5 more ...; minUnit: TimeUnit; }; ticks: { ...; }; }> | ... 4 more ... | undefined'.
          Type '{ ticks: { beginAtZero: boolean; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "timeseries"; } & CartesianScaleOptions & { bounds: "data" | "ticks"; adapters: { date: unknown; }; time: { parser: string | ((v: unknown) => number); round: false | TimeUnit; ... 5 more ...; minUnit: TimeUnit; }; ticks: { ...; }; }>'.
            Types of property 'reverse' are incompatible.
              Type '() => { ticks: { beginAtZero: boolean; }; }[]' is not assignable to type 'boolean | undefined'.
                Type '() => { ticks: { beginAtZero: boolean; }; }[]' is not assignable to type 'true'.

  251 |     };
  252 | 
> 253 |     return <Bar data={histoData} options={histoOptions} />;
      |                                  ^
  254 |   },
  255 | );
  256 | 
error Command failed with exit code 1.

lerna ERR! yarn run build exited 1 in 'web'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
carthanas commented 3 years ago

Very strange. For whatever help it is, I didn't have to add any extra types to get it working locally. I'll have a look and see what I can find.

Out of curiosity, if you do git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock Does it work for you?

RathTB commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

scotig33 commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

Where did you run git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock

RathTB commented 3 years ago

@scotig33 main metaplex folder the opened js to continue the rest of the steps

KingpinFisk commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

Thanks for the feedback man πŸ™ It also just worked for me after hours of trials ! Have you been able to yarn run the CLI in js/web/packages/cli/ ?

RathTB commented 3 years ago

as far as i can see its all running as expected

KingpinFisk commented 3 years ago

metaplex cli install does not work on that commit tho (for me) I used the cli commit referenced here πŸ‘‰ https://lightcycle.xyz/zero-to-solana-first-metaplex/

CryptoniteMining commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

Thanks for the feedback man πŸ™ It also just worked for me after hours of trials ! Have you been able to yarn run the CLI in js/web/packages/cli/ ?

Dumb question, why is my "git clone https://github.com/carthanas/metaplex.git" giving back an error. I'm not in the cd metaplex or cd js. But it's saying

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again. At line:1 char:1

Wdeacon20 commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

Thanks for the feedback man πŸ™ It also just worked for me after hours of trials ! Have you been able to yarn run the CLI in js/web/packages/cli/ ?

Dumb question, why is my "git clone https://github.com/carthanas/metaplex.git" giving back an error. I'm not in the cd metaplex or cd js. But it's saying

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Lol. I am also stuck on this.

enescaakir commented 3 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

It worked, thanks god!

cheeyoon commented 3 years ago

I'm still getting the same canvas error after

cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
[5/5] πŸ”¨  Building fresh packages...
[8/22] β‘€ pngquant-bin
[14/22] β‘€ keccak
[10/22] β‘€ secp256k1
[13/22] β‘€ less-watch-compiler
error /Users/cheeyoon/src/metaplex/js/node_modules/canvas: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /Users/cheeyoon/src/metaplex/js/node_modules/canvas
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@1.0.5
node-pre-gyp info using node@17.0.1 | darwin | x64
node-pre-gyp info check checked for "/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node" (not found)
node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@17.0.1 (node-v102 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.1
gyp info using node@17.0.1 | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.1
gyp info using node@17.0.1 | darwin | x64
gyp info find Python using Python version 2.7.15 found at "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
(node:62063) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/Library/Caches/node-gyp/17.0.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/cheeyoon/Library/Caches/node-gyp/17.0.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/cheeyoon/Library/Caches/node-gyp/17.0.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/cheeyoon/src/metaplex/js/node_modules/canvas',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v102"
gyp ERR! cwd /Users/cheeyoon/src/metaplex/js/node_modules/canvas
gyp ERR! node -v v17.0.1
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/cheeyoon/src/metaplex/js/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1062:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Darwin 20.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/cheeyoon/src/metaplex/js/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/cheeyoon/src/metaplex/js/node_modules/canvas
node-pre-gyp ERR! node -v v17.0.1
node-pre-gyp ERR! node-pre-gyp -v v1.0.5
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/
ozornak commented 3 years ago

guys, tell me why after the launch of yarn start, the mint price does not change anymore

nathanielremy commented 3 years ago

npm install 14.17.0 nvm use 14.17.0

Use this version of node (14.17.0) it will fix your canvas issue. Then after maybe you will run into the yarn build issue and have to checkout the previous commit

I'm still getting the same canvas error after

cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
[5/5] πŸ”¨  Building fresh packages...
[8/22] β‘€ pngquant-bin
[14/22] β‘€ keccak
[10/22] β‘€ secp256k1
[13/22] β‘€ less-watch-compiler
error /Users/cheeyoon/src/metaplex/js/node_modules/canvas: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /Users/cheeyoon/src/metaplex/js/node_modules/canvas
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@1.0.5
node-pre-gyp info using node@17.0.1 | darwin | x64
node-pre-gyp info check checked for "/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node" (not found)
node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@17.0.1 (node-v102 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-darwin-unknown-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.1
gyp info using node@17.0.1 | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.1
gyp info using node@17.0.1 | darwin | x64
gyp info find Python using Python version 2.7.15 found at "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
(node:62063) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/cheeyoon/Library/Caches/node-gyp/17.0.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/cheeyoon/Library/Caches/node-gyp/17.0.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/cheeyoon/Library/Caches/node-gyp/17.0.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/cheeyoon/src/metaplex/js/node_modules/canvas',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v102"
gyp ERR! cwd /Users/cheeyoon/src/metaplex/js/node_modules/canvas
gyp ERR! node -v v17.0.1
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/cheeyoon/src/metaplex/js/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1062:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Darwin 20.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/cheeyoon/src/metaplex/js/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/cheeyoon/src/metaplex/js/node_modules/canvas
node-pre-gyp ERR! node -v v17.0.1
node-pre-gyp ERR! node-pre-gyp -v v1.0.5
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /Users/cheeyoon/src/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/cheeyoon/src/metaplex/js/node_modules/canvas/
arudeboy commented 3 years ago

I tried the one method up here, and it doesn't work for me yet γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-11-02 23 13 06 .

carthanas commented 3 years ago

This should be fixed on master. Anyone having issues still should ensure you're working from a clean slate

git stash # Stash any local file changes
git checkout master
git pull

yarn cache clean # Clear your node modules
lerna clean -y
yarn install
lerna bootstrap

yarn build # Try again

If you're still having issues after this, please paste your terminal log here.