Can't resolve 'fs' in 'node_modules/dotenv/lib'

后端 未结 0 1858
渐次进展
渐次进展 2020-11-29 14:17

I tried putting this at the top of my React component\'s tsx file:

require(\'dotenv/config\');
const slackUrl = process.env.JOIN_URL;

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