-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Firefox] Unhandled promise rejection TypeError: "this.loadPageDataJson(...).then(...).finally is not a function #16287
Comments
|
Is there any easy way to polyfill this for the time being? Some plugin or configuring webpack etc? I can confirm this is a bug, but only in production mode. If I run it in dev mode, it works just fine. |
It's supported in the browser, there's no need. |
@elken I know it is, but somehow it does not work in FF 68 (which seems to support it), at least in production. This will break my website sooner or later for some users. Can I configure my project in such a way that this does not break the website on FF 68 or older? Thanks in advance! 🙏 |
What @Chalarangelo asked would work for me too for now, if there is some workaround until they implement this. |
@Chalarangelo According to https://caniuse.com/#feat=promise-finally, @arnauguadall Could you please link to a minimal reproduction? |
We're experiencing this on Canvas 1839 as well if you care to see it happen, @sidharthachatterjee (source maps are on). |
It looks like Specifically, this is triggered when a Gatsby Link is hovered over, which prompts the |
The polyfill should be only required on versions <58, if that's the problem. |
Then @coreyward, could be an alternative change that loader.js to not use Would be something like include In
Maybe another solution would be nest another |
I'm having the same issue with a site as well. I have found that the Firefox Beta has fixed this but that's not released until Sept 3. In their notes it does have a known bug about Promise. Anyone know which version of Gatsby 2 was stable? |
FYI, I reverted back to |
@wardpeet You self-assigned this. Do you need more info than the above? |
I can confirm that, for now, reverting to |
I removed some custom component I had in another folder that I assume they used |
thank guys, i can confirm the break was in 2.12.1. 2.12.0 works for me also. Here is a fix. https://github.com/gatsbyjs/gatsby/pull/16734/files I've not used |
[email protected] has fixed the firefox(finally) bug. Thank you @peter-mouland |
Description
When I run in localhost works ok with all the browsers including Firefox but when it goes to production the Firefox v68.0.1 looks misaligned caused (I guess) for this
.finally
function.Steps I tried
I tried to use
"gatsby-plugin-compile-es6-packages": "^2.1.0"
to compile es6 features like they are using in #2177 but without luck.Also I tried:
Expected result
What should happen?
Works ok with Chrome (v75.0.3770.142).
Actual result
Returns a console error which for what I found it's something that
.finally()
function is quite new and maybe is not fully supported yet.How it looks like in Firefox (v68.0.1)
Also I'm using
"antd": "^3.12.3"
package to handle the UI and in this CSS class if you changeflex-direction: column
torow
it looks ok but the error still persists.Environment
The text was updated successfully, but these errors were encountered: