How do I get around window not defined during Gatsby build? If check is not working

后端 未结 0 785
南方客
南方客 2020-12-16 05:41

One of my props uses a conditional operator to determine the color of a nav element. But the statement requires the window.location.pathname which causes this error during b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题