gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

path.js: process is not defined

Open sehilyi opened this issue 2 years ago • 1 comments

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

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.

sehilyi avatar Oct 08 '21 04:10 sehilyi

Another error message: Screen Shot 2021-10-08 at 1 14 38 PM

sehilyi avatar Oct 08 '21 04:10 sehilyi