Build Your Own DAO - Helping Each Other

Done

not sure why it showed 2 files not saved, ran it again after saving

You need to save them too, maybe by clicking on them and saving them too

1 Like

yes i did, those were the two files that got compiled, i had saved before running deploy

On line 26, it should be networks with s, not network without s

1 Like

tried that also but here is the image with it showing the same error

Seemed you forgot to save your file after fixing that, so you should before running the command

1 Like

A bit different error now

cant believe it, its working, thank you for your help and patience with me, appreciate it

1 Like

Seemed you didn’t save your Dao.sol and deployDao.js file. Make sure both are saved, then you can try again

1 Like

thank you, i will :pray:

Hi, thank you for helping me yesterday. I have nearly finished, bare with me please. There are a couple issues, will start with one as most likely it will be the same fix for all the issues.

When i run the frontend, on the homepage i can vote but i cant Create a proposal, as you can see in the screenshot it just stays like that on submitting proposal

The errors im getting once i run yarn start are:

./src/pages/pages.css (./node_modules/css-loader/dist/cjs.js??ref–5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/pages/pages.css)
Warning

(33:5) start value has mixed support, consider using flex-start instead

./src/pages/pages.css (./node_modules/css-loader/dist/cjs.js??ref–5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/pages/pages.css)
Warning

(82:5) end value has mixed support, consider using flex-end instead

./node_modules/moralis/lib/browser/Web3Connector/MagicWeb3Connector.js
Module not found: Can’t resolve ‘magic-sdk’ in ‘C:\Users\tsaka\Desktop\DAO-start\node_modules\moralis\lib\browser\Web3Connector’

src\pages\Home.js
Line 148:6: React Hook useEffect has missing dependencies: ‘Moralis.Object’, ‘Moralis.Query’, ‘Web3Api.token’, and ‘getStatus’. Either include them or remove the dependency array react-hooks/exhaustive-deps

src\pages\Proposal.js
Line 65:6: React Hook useEffect has missing dependencies: ‘Moralis.Object’, ‘Moralis.Query’, and ‘proposalDetails.id’. Either include them or remove the dependency array react-hooks/exhaustive-deps

These are warning you can ignore. They shouldn’t affect your project

Something seemed wrong somewhere which you need to try to find out. Maybe you can log some values in the function to create proposals to be sure of what you’re doing or compare your code to the final one

These missing dependencies i can also ignore?

Line 148:6: React Hook useEffect has missing dependencies: ‘Moralis.Object’, ‘Moralis.Query’, ‘Web3Api.token’, and ‘getStatus’. Either include them or remove the dependency array react-hooks/exhaustive-deps

Could it be that due to web3api.token its not scanning the wallets who are holding the nft needed to create a proposal?

You can ignore these warnings. You can read this on how useEffect dependencies work.

Do you get any browser console errors? Do you get the request to sign the transaction?

You can check the final project repo to compare your code.

It logs in fine with no browser errors, already found a letter missing in a word, will look through the code

Thank you

Hi, everything is working perfectly, very excited and thankful for your work and excellence in teaching. Now i cant seem to find how to deploy the website live. Could you guide me in the right direction to get this done please? The html file is as is from github, its empty once i open it, how do i transfer the frontend to it so that it shows the same as it does locally?

I went through the docs for it, ran deploy, but the build folder also came up with an empty html.

thank you

To link java to html is this all that needs to be added to the index.html file?
script src="/src/index.js"></script

You shouldn’t do it that way.
You can run npm build or yarn build to get a build directory which you can deploy. That public folder and src are used for development, at the end what you need is the build

run the build and then link them?