New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running yarn build #817
Comments
xd, im thinking now why build didn't work |
Do you have the same error about |
sure |
me too, got the same issue |
This is so strange. I had just setup metaplex yesterday on a separate machine and running yarn build was fine. |
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. |
Made an attempt at a fix here #819 Reverting the yarn.lock to an earlier build should work as a temporary fix for anyone blocked. EG
|
Same problem here, I tried an older master version (about 2 days ago) and it worked fine. |
Same. How can I download an older version? |
you can change the yarn version using: |
but it doesn't help either) the same mistake |
Thanks and bummer it doesn't help. |
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..? |
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 |
lerna ERR! yarn run build exited 1 in 'candy-machine-mint' That is currently the error I receive |
Thanks for the help. |
Thank you for reporting this. Taking a look. |
It's only missing the types dependency. Just run locally.... The devs will probably add it back in the next commit :) |
Or you can delete your |
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? |
I couldn't reproduce. I generally recommend @felipelincoln's advice
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. |
Here it's what's been happening to me after i run "yarn build" |
Getting the exact same error, going crazy over here |
has anyone figured this out? |
This should be fixed on master. Anyone having issues still should ensure you're working from a clean slate
If you're still having issues after this, please paste your terminal log here. |
I tried to downgrade my node version from 17.0.1 (which is the current version) to 16.13.0 and the |
This worked for me too!! I really appreciate your help!! |
I'm still getting this error on fresh install of Metaplex... Using m1 chip [5/5] 🔨 Building fresh packages... |
I was able to work around it by brew installing canvas: |
I'm on master, followed all advice on this thread, still getting the following error:
|
Not always able to respond here but I'll do my best to help. Two things I notice just offhand:
It would be best to start with a fresh clone of the repo and checkout v1.0.0 as detailed here https://github.com/metaplex-foundation/metaplex#how-to-checkout-a-release If you still have the issue with that version of the code then I would say something is screwy with your machine or there is a genuine bug that needs to be reported to the dev team. For what its worth, I've checked out v1.0.0 on a mac and ubuntu box and both of them are working fine. |
Thanks, you were right. Turns out I had a version of TypeScript installed globally that was messing with the build. |
I followed the steps but getting same error |
I've deleted my forked repository as it seems to be causing people more confusion than help and the fix has already been merged into upstream. @safiyanaaz Try the latest release version as outlined here |
Pretty confident the metaplex team has fixed this. Here is the latest advice I can give to those having trouble.
|
yarn run v1.22.15 |
It looks like a problem with the latest version of node not being compatible with metaplex. I am on the macOS Big Sur. I had to downgrade node. I did this:
|
had issues with canvas while running 'yarn install' on the mac, apple chip. had to install from source: https://github.com/Automattic/node-canvas/wiki/Installation%3A-Mac-OS-X ran: brew install pkg-config cairo pango libpng jpeg giflib librsvg |
this worked for m1 mac thank you! |
Really not sure what to do, tried all the methods above :/ $ lerna run build lerna ERR! yarn run build stderr: Error: error:0308010C:digital envelope routines::unsupported Node.js v17.0.1 lerna ERR! yarn run build exited 1 in 'candy-machine-mint' |
You're on Node 17? Try an older version.. 16, even 14. I ended up getting everything to work with Node 14. |
Initially i was using 17, then i tried downgrading to 16 - but a bit lost how to downgrade to 15 or 14 |
If you have Node version manager, NVM, you can set the node version to use. Not sure what system youre running but you should be able to find quite a few resources via Google on how to install NVM for your system and install/set the node version using NVM. |
@lherna1371 would love to have your advice, I installed NVM and in the terminal set to be 16.13 for example. However the code still appears to be using 17.0 |
Also very interested in updates on the above :) |
Solved my issue by running on Node v14. |
$ lerna run build lerna ERR! yarn run build stderr: lerna ERR! yarn run build exited 2 in '@metaplex/cli' Hello, I've tried all methods listed above but I really can't find the right solution.. please help me I really want to solve this yarn build problem |
Guys I also had the same error. It's because of the nodejs version. Uninstall the current one and use 16.13.1. It'll work |
I solved this problem uninstalling node and yarn, and installing again node 16.13.1 and yarn, but using the msi file: https://github.com/yarnpkg/yarn/releases/download/v1.22.4/yarn-1.22.4.msi . Because i think that when you install yarn using npm it also install node 17, and it was causing the problem. |
This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue. |
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.The text was updated successfully, but these errors were encountered: