-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Export to Excel isn't working #12339
Comments
How did we do @chezkibotwinick? |
Hey, I accidentally closed this and it is still an issue. |
Hey @cherniavskii could you have a look at this? In the meantime could you provide us with a little more info on your setup and implementation @chezkibotwinick ? Also did you try manually installing |
Hey @michelengelen.
Both following implementation result in same error as I shared above:
Using custom method:
|
Hey @chezkibotwinick ... we will have a look. But first: Why are you using Also could you maybe provide some more info on your setup? e.g. if you are using plain React, or Vite/Next, etc. In the meantime I will test it myself. |
@michelengelen thanks for looking into it and for your support :) I removed Re setup - I am using React |
I am not able to reproduce this issue.
Ran a production build locally and I can export without a problem from it. BTW: @chezkibotwinick could you post the full stacktrace for the error you got from exporting? I am a bit baffled that it states that it occurs in |
Hi @chezkibotwinick The issue could be related to the usage of dynamic import: mui-x/packages/x-data-grid-premium/src/hooks/features/export/serializer/excelSerializer.ts Lines 26 to 27 in 848f2a1
But I need a reproduction example to be able to investigate. |
Yeah, it works fine with |
@michelengelen I am not using @cherniavskii I am using Thank you! |
@michelengelen this is the trace: |
Could you maybe create a sample repo that uses |
The issue has been inactive for 7 days and has been automatically closed. |
The problem in depth
Hi,
I am experiencing an issue with the
DataGridPremium
component when attempting to export as Excel. While everything works as expected in my local environment, I encounter the following error in different environments:It seems that the component is trying to fetch data from the local environment for some reason. I came across a previous issue opened on this page, but it did not provide any steps for resolving the issue.
This error occurs both by using the
GridExcelExportMenuItem
and by using thegetDataAsExcel
api.I have tried different versions, including the latest, but the error persists.
I would greatly appreciate your assistance in resolving this issue.
Thanks
Your environment
`npx @mui/envinfo`
Search keywords: Export to Excel
Order ID: 85670
The text was updated successfully, but these errors were encountered: