Done
You need to save them too, maybe by clicking on them and saving them too
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
Seemed you forgot to save your file after fixing that, so you should before running the command
Seemed you didnât save your Dao.sol
and deployDao.js
file. Make sure both are saved, then you can try again
thank you, i will
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?
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?