cerebral / overmind

Overmind - Frictionless state management
https://overmindjs.org
MIT License
1.58k stars 95 forks source link

[BUG] Using overmind-react in a Gatsby site throws Uncaught ReferenceError: process is not defined #510

Open drulang opened 3 years ago

drulang commented 3 years ago

Following the setup instructions on using Overmind with Gatsby results in Uncaught ReferenceError: process is not defined in the browser. I've created a repo that illustrates the issue: https://github.com/drulang/overmind-example

Clone and run gatsby develop to see it first hand.

Screen Shot 2021-05-25 at 10 39 47 AM

Error is being thrown on the last line: Screen Shot 2021-05-25 at 10 44 18 AM

christianalfoni commented 3 years ago

This should be fixed in next release 😄

Spring3 commented 2 years ago

I started to get the same error after an update to react-scripts v5

overmind-react v28.0.0