project_professional_portfolio
project_professional_portfolio copied to clipboard
My react application goes blank everytime I reload it and is showing the following issues on the console. Can anyone please help me to figure them out?
Having kinda similar issues. Do know how, but kinda resolve this, by switching ReactDOM.render to createRoot (cause of react 18)
and updated backend_sanity (deleted old and create new)
I am also having this issue, I was able to fix the ReactDOM issue, though the imgURLBuilder is still causing me issues. Not sure how to fix it.
Did you guys figure it out? I was facing the issue of application going blank. It was because I directly copied client.js from the repo. I changed my client.js and now its working fine.
// find bellow line of code in Skills.jsx // { experience.works.map((work)=>(
{() => experience.works.map((work) => (
Open project_professional_portfolio-master/src/client.js
Change projectID: '<projectID>'
(without <>)
You can find the project ID(red box in the following image) by logging into sanity and navigating to the project.
does anybody knows how to fix this?
I also have had that issue and I fixed it typing this line before the export:
// eslint-disable-next-line
Pd: It's a simple warning