#7 getStaticProps Nextjs | getstaticpaths next js | getstaticprops vs getinitialprops | not working

preview_player
Показать описание


*** Github repo ***

Please star my repo to support my work 🙏

*** Please nominate me for Github Star ***

******* Social Links ********

Please follow 🙏

Twitter - @codeytek

Github - imranhsayed

******* Other Playlist ******

==== REACT TUTORIALS ====

==== REDUX TUTORIALS ====

==== REACT WITH WORDPRESS TUTORIALS ====

==== WEBPACK TUTORIALS ====

#wordpress #getStaticProps #nextjs
Рекомендации по теме
Комментарии
Автор

bytheway for the windows users you can do this for development in the script "set NODE_OPTIONS=--inspect&&next dev"

eaonflux
Автор

Imran, thank you for great tutorials with next js!!!! Pleaseee include wordpress translate with wpml or polylang in this series! :)

antuncrnja
Автор

Hello Im getting this error
Invariant Violation: query option is required. You must specify your GraphQL document in the query option.

This error happened while generating the page. Any console logs will be displayed in the terminal window.

hectorcordova
Автор

i get this error while following you GraphQLError: Syntax Error: Unexpected Name "headerMenus".

This error happened while generating the page. Any console logs will be displayed in the terminal window.

lzy
Автор

NIce tuts but sadly not working at all. i am stuck before the part where you talking about Cypress.
I can not figure out what is wrong? in the console it outputs the html source code from mine website where graphql is installed, the error message is that it can not read the json file but thats understandable because i am out putting html source and not json. When i try the example code from the NextJS website (without apollo) that is working. when i try your final code i have the same problem.

eaonflux