-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client side JS rendering error re: browser-ponyfill.js does not provide an export named 'default' #449
Comments
Looks like this is something other projects have encountered using graphql and Some discussion in other projects about it being related to how the packages are linked: supabase/supabase-js#845 (comment) |
@JamesPHoughton thanks for the detailed report -- just chiming in to say I'm also facing this. happy to share any diagnostics that are helpful, but I see obvious bases are already covered. As an aside, is the documentation on changing to a specific version up-to-date? Tried doing Update: it looks like |
Would mind trying to add the following to you client/package.json and then "overrides": {
"@empirica/core": {
"@empirica/tajriba": "1.5.2"
}
} Thanks! |
That worked great - what is it doing? |
It forces a new version of tajriba I released, that polyfills fetch on the server. Unfortunately, the 2 libraries that handle browser and node cross platform support for fetch are broken in different ways, when using what they call a "ponyfill", which is where you don't overwrite the global definition of the thing you're trying to patch (here, fetch). So we're going for a full polyfill, which I'd rather not do, but I think it's fine. node-fetch is good. And I don't really have a choice at this point. I'm releasing a new version with this fix. |
This should be fixed in release 1.8.9. |
Is there an existing issue for this?
What happened?
After bumping to latest version, running the admin console is fine, but switching to participant view yields a JS error, and a blank page. (Nothing is rendered at all.)
From chrome browser console:
From firefox
Which corresponds to:
From safari:
No errors serverside.
Steps To Reproduce
No response
Empirica Version
What OS are you seeing the problem on?
macOS
What browser are you seeing the problem on?
No response
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: