Build Medium Clone! - Moralis Project going live on the 18th of June

Hey, quick question, so I edited the code a lot and I’m trying to deploy it using Netlify but it’s not working for some reason.

I tried debugging but it didn’t really work.

Also, it does work on my local host btw.

I think I might’ve missed the step on a video when deploying, but I did rewatch and couldn’t find much.

Check your Netlify deploy logs for any errors. Does your project work fine locally? Or serving your build folder (from npm run build) with a local webserver.

The Netlify didn’t have any log errors.

It does work fine locally. I used Yarn btw. I tried hosting locally on different devices as well btw. It worked finally locally on my other device as well.

Just can’t get it to deploy on Netlify.

Edit: I also tried it on 1 online IDE codesandbox. It doesn’t seem work there as well.

Just shows a blank page.

Edit 2: Here is the Netlify link: https://mediumclone-v01.netlify.app/

Just looked at the console on the deployed website on Netlify take a look at this logs:

I wonder what they mean?

Hey, quick question:

I think this is in the NewStory.js page but why are you able to put decimals as a fee for minting?

Can it be like 0.30 or 0.3 ? If not why not?

How would I make it so that it’s 0.3? Would I write it as 003 or something similar along the lines 000000003?

Are you talking about this?

You can put decimals into Moralis.Units.ETH("0.3"), that function transforms it into the necessary format to be used for msgValue.

Yup, that’s what I was talking about. Also, does that number have to be the same as what was used when deploying the contract?

Yes it needs to match or be higher than the fee you set in the smart contract so running safeMint doesn’t revert.

Got it that make sense thank you!

Also, I was referring to line 48 on the NewStory.js, but yea that’s included in the line 19 function.