I'm trying to run a React application and when I load localhost I get a blank white page. I'm able to see the title but that's about it. When I look into the Console I receive this message:
Uncaught ReferenceError: process is not defined
at config (main.js:56:1)
at Module../src/utils/config.ts (config.ts:5:1)
at Module.options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:61:1)
at Module../src/utils/api.ts (reportWebVitals.ts:15:1)
at Module.options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:61:1)
at Module../src/utils/apiService.ts (api.ts:38:1)
When I click the main.js:56:1 line I'm shown there's an issue here:
let dotenvPath = path.resolve(process.cwd(), '.env')
Would this be accurate as to why the page is not loading, or is there something else I should be looking into?