[Bug] Uncaught ReferenceError: process is not defined
Open
bug
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
**Describe the bug**
utils.ts:235 Uncaught ReferenceError: process is not defined
at isTest (utils.ts:235:17)
**To Reproduce**
1. Create a vite app with kepler.gl `3.0.0-alpha.1`
2. Run and see error
**How to fix:**
in [utils.ts](https://github.com/keplergl/kepler.gl/blob/72fca50ffa2dce72b65e14d75b249d22cf5ba300/src/utils/src/utils.ts#L217
)
```
return process?.env?.NODE_ENV === 'test';
```
if process is undefined this always errors, process is not defined on the browser but webpack adds it.
could change to `window?.process`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.