gosling.js
gosling.js copied to clipboard
path.js: process is not defined
When gosling.js
is used with a vite-react-ts
template, multiple error messages appear:
![Screen Shot 2021-10-08 at 12 59 51 PM](https://user-images.githubusercontent.com/9922882/136496492-77184af2-e7c9-4741-90ac-5cafb046076a.png)
Adding the following lines in the base HTML files address the issue:
<script>
var process = { platform: '', env: '' }
</script>
Would need to include this in the build so that users do not have to care about these details.
Another error message: