[I'm trying to make a react project on github pages using username].github.io. but when I go on the link, it just returns a loading page i created and then a only white screen
code source
https://github.com/drissbejgana/portfolio [link]
https://drissbejgana.github.io/portfolio/
CodePudding user response:
If you open the console you can see your project throws an error
TypeError: Object(...) is not a function
at o (header.js:10)
at il (react-dom.production.min.js:157)
at Ki (react-dom.production.min.js:267)
at Tu (react-dom.production.min.js:250)
at Pu (react-dom.production.min.js:250)
at Ou (react-dom.production.min.js:250)
at bu (react-dom.production.min.js:243)
at react-dom.production.min.js:123
at t.unstable_runWithPriority (scheduler.production.min.js:18)
at qa (react-dom.production.min.js:122)
CodePudding user response:
you can delete the gh-pages and then try again.
CodePudding user response:
idk why but the probleme was in the header in aos library I delete this hook and the website works
useEffect(()=>{ AOS.init({ duration : 2000 });