__dirname is not defined in nodejs

后端 未结 0 1659
粉色の甜心
粉色の甜心 2021-02-01 03:39

So I have an app that I am making that has a React front-end and Node-express back-end. For some reason when I access the variable __dirname in any way, it says it

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