Closed wickedev closed 2 years ago
As a further explanation, there is no problem when installing the package and the first yarn dev. It seems to happen after the second time.
Does performing yarn vite clean
> Ctrl+C > yarn dev
solve the issue? I'm not sure what's the cause, but I think I had the same issue and solved by doing that. I can't investigate the issue right now since I didn't bring my laptop. If that doesn't solve your issue then I'll look at the issue tomorrow.
In dev mode the process dies randomly for two reasons, one is
Cannot set headers after they are sent to the client
and the other isReact SSR Error Invariant Violation: useRelayEnvironment: Expected to have found a Relay environment provided by a 'RelayEnvironmentProvider' component.
There is no problem when I try with curl , but when I try with chrome the node process dies. The process does not die when in prod mode. Below is the output