Closed LuanEdCosta closed 1 year ago
I'm using Vite(v2.9.9), got same issue
@LuanEdCosta , try this, it worked for me!
Just add
<script>window.global = window;</script>
to your index.html
Nice solution! Thanks.
Gota same issue with Vite 3.0.5. <script>window.global = window;</script>
fixed it
Reporting a Bug?
I'm using Vite (it is a build tool) and got this error:
I believe that this caused the problem:
src/util.js
I don't have the
global
variable defined.