This message was deleted.
# announcements
w
This message was deleted.
b
The issue was solved by changing the
fetch: require("cross-fetch"),
line in the
setPolyfills
function to the import approach at the beginning of the file:
import { fetch } from 'cross-fetch'
f
oh interesting
were you getting an error?
logged?
b
Hey Graham! Thanks for the reply. I was not getting errors. In fact, Growthbook sent "connection successful" message, but was not connected in the SDK page. Also, I was always receiving
null
in the feature flags
But there was no error message
f
I wonder if we should do a PR for this?
b
Not sure. It seems that the issue was only happening on deployments, because the local environment was working as expected. We needed to add the
setPolyfills
function, but also change the way to import
fetch
from
cross-fetch
package. But I was not getting a clear error message
139 Views