Closed dswitzer closed 6 years ago
Yes, that might be the case. That update was not yet fully ready to go love.
That said, I can't reproduce this error myself.
Do you have a pen that acts like this, or does this happen on your local install?
Here's an example:
https://codepen.io/anon/pen/EpJbJe
The problem is related to the tags. I suspect it's ultimately a CORS issue, since the CSS files are stored on remote site. You have to remove both link tags in order for the exporting to work.
Thanks. This helps!
Obviously a CORS issue since browser seems to be preventing access to cssRules.
In any case, we are revamping export as we speak. I'll make sure to run this particular demo before we get it out.
OK, so I did some preliminary testing. This is indeed is caused by including web fonts using <style>
tags from different domain. We will investigate if we can work around it.
In the interim, the solution would be to use @import
directive in your own CSS.
This should work for Google Fonts.
But probably won't for bootstrapcdn.com so you might need to find some alternative cdn for font-awesome.
I know it's not the ideal solution, but something you can work with until we figure out if we can fix it the right way.
Any update on this (outside of the previous workaround)?
I'd like to update to the latest beta, but this is blocking me.
What if there was just a try/catch around whatever code is trying to inject the CSS that spits out a CORS message to the console, but goes ahead with the export anyway?
That way the CORS issue doesn't break exporting, but it gives something useful in the console that explains there's an issue.
Could you please hold on just a little bit longer?
We almost got export revamped. Hopefully we'll go to release at some point later today, or Monday.
Would that timing work for you?
Yes, that would be fine. Thanks!
Just a heads up, the beta.47 just released does not contain export update. It's not quite ready.
We're going to make that release early next week.
Fixed in 4.0.0-beta.48.
useWebFonts
setting in Export
. Allows disabling of download of web fonts when exporting.useRetina
setting in Export
. Images are now exported scaled up on retina displays by default. Set useRetina = false
to disable.useRetina = false
to disable.urlTarget
was not carried over from ListTemplate
template to new items.Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.
I can no longer export a chart to an image or print using beta 43. It works fine in beta 42.
In Chrome I see the following error:
In Firefox, I see:
I suspect this is related to the Export now correctly uses external fonts included via @import, such as Google Fonts fix that was implemented.