Current location: Homepage > solidity > Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep82 Text
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep82
Time: 2025-07-11 13:43:46 Source: Web3tica
for areally simple hardhead project thehardhead project route is women in spacegoing to bethis folder that we're in right now doyou want to add a G.G ignore yes weabsolutely do because we're going to beusing EnV files do you want to installthis sample Project's dependencies withyarn at nomic laabs hard hat at ethereumWaffle at Shai we're going to go aheadand say yes and I'll explain what allthese dependencies are in a bit let's goahead and say yes for now and we'regoing to install all of thesedependencies now if we look in ourpackage.json we can see we've added anumber of dependencies like nomic laabshardhead ethers nomic laabs hardheadwaffle chai ethereum waffle and ethersobviously we're already familiar withethers but the rest of these might be alittle new we'll talk about those laterand great we now have a sample hard hatboilerplate project let's walk throughwhat we just installed here the firstthing we have is a contract folder whichcomes pre-populated with greer. soulthere's really minimalistic contracthere next you'll see node modules whichof course is our installed JavaScriptdependencies something I want to notebecause it was really confusing to mewhen I first started working with thisis some of these no modules start withan at sign and then a lot of them don'twhat's the difference between those twothese at sign node modules are known asscoped packages which effectively allowmpm packages to be namespaced or yarnpackages this allows organizations tomake it clear what packages are officialand which ones are not for example if apackage has the scope at angular youknow it's published by the angular coreteam so it's the same thing with thisanything with ATS domains we know is bythe ens domains team anything with theat nomic Labs is going to be by the teamthat created hardhead so that's why thisat nomic Labs hardhead ethers and atnomic Labs hardhead waffle has this atsign cuz we know it's published by thenomic labs team then we have a scriptssection this is going to be where we'readding any and all of our scripts thatwe want to write like deployingcontracts interacting with contracts Etcand then we have a test folder wehaven't started building any tests yetbut tests are incredibly important forworking with smart contracts and thissample test folder gives us aminimalistic test for test in our smartcontracts we of course have a g ignorewhich of course comes pre-populated withsome important things to to ignore likeEMV and also node modules because nodemodules might get too huge to push up toGitHub and one of the biggest changeshere is it adds this hard hat. config.jsthis file even though it's minimalisticright now you can think of as the entrypoint for all the scripts that we writeit's the configuration file thatdetermines how the rest of our code isgoing to work and interact with theblockchain then of course we have wehave package.json we get started with aread me remember how the first time weran yarn hardap we were prompted withthis getting started piece now if we runyarn hard hat we're actually going toget an output of all the differentoptions and commands we can use withrunninghardap now if you run into an issuewhere you run yarn hardap and this popsup but you don't see a hard hat.config.js in your folder it likely meansthat there's a hard hat. config.jsin a higher level folder or there's anode modules with hard hat in a higherlevel folder so if that happens maybe CDdown a directory and do a little LS andlook to see if you've got a hard hat.config.js or node modules in an earlierfolder and because I've actually seen anumber of Engineers have a couple ofdifferent problems here my friend Cammyis going to explain a couple ofdifferent troubleshooting tips you cantake to try to avoid these common errorsas a developer the most annoying thingto deal with are environment set ofissues my name is Camila Ramos I'm adevil engineer at Edge and noessupporting the graph protocol and I'mgoing to show you how to solve twocommon problems that you might see whenworking on this project after installinghard hat and running the command npxhard hat in your new project folderyou're going to expect to get back amenu of options like this but sometimesyou're not going to get that back andwhen you run into this error there is asolution for you and it usually justmeans that you have a config filesomewhere that it shouldn't be anddeleting it will get rid of that errorwhat you're going to do in order to findthis file that you need to delete is runthe command npx hard hat space hyphenhyen verbose and this is going to spitout where this file is if you have oneand it's going to tell you exactly whereit is so that you can delete it afteryou've deleted this config file youshould be able to run npx hard hat inyour project folder and get back thatmenu that we were expecting anotherproblem that is pretty common and Istill run into all the time isforgetting to npm install wheneveryou're working with a repo that otherpeople have been working on on GitHub solet's say you're pulling down some codethat you and some collaborators wereworking on together and then suddenlyit's not working for you you probablyjust need to npm install so in yourterminal go ahead and navigate to wherethis project is located and then run thecommand npm install if there are any newpackages that were installed in the timethat you weren't working on the codethose will get installed locally for youso that when you run the code it'll beable to runsuccessfully what are some of the mainthings we can do with hardap in its RostState here these are some of the maintasks that we can run with hard hatdifferent tasks are just differentcommands we can run with hard hat forexample we can do yarn hard hat accountswhich will print out a list of fakeaccounts we can use with harde headsimilar to the list of fake accountsthat we used with ganach we can compileour contracts by running yarn hard hatcompile very similar to what we did withether's JS and silk JS you'll see whenwe run
-
Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial - Ep92Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep247Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep5Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep262Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep49Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep181Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep86Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep19GenAI Essentials – Full Course for Beginners - Ep57Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep176
Previous article: GenAI Essentials – Full Course for Beginners - Ep162
Next article: GenAI Essentials – Full Course for Beginners - Ep50
Next article: GenAI Essentials – Full Course for Beginners - Ep50
Related content
- ·GenAI Essentials – Full Course for Beginners - Ep2
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep63
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep45
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep34
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep137
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep84
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep149
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep39
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep70
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep164
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep93
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep129
- ·Trailblazing women and their journeys to space - Ep1
- ·The Basics of Web3 - Ep5
- ·Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep14
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep42
Latest content
- ·Full interview_ Donald Trump details his plans for Day 1 and beyond in the White House - Ep13
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep98
- ·Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep3
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep63
- ·GenAI Essentials – Full Course for Beginners - Ep7
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep154
- ·Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep17
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep79
- ·GenAI Essentials – Full Course for Beginners - Ep106
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep225
Recommended content
Hot content
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep1
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep98
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep292
- ·XRP Ripple LIVE Senate Brad Garlinghouse - FROM WALL STREET TO WEB3 - Martyn Lucas Investor - Ep4
- ·GenAI Essentials – Full Course for Beginners - Ep69
- ·XRP Ripple LIVE Senate Brad Garlinghouse - FROM WALL STREET TO WEB3 - Martyn Lucas Investor - Ep17
- ·Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep195
- ·Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep75
- ·Full interview_ Donald Trump details his plans for Day 1 and beyond in the White House - Ep13
- ·Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep61