Skip to content

Conversation

@hasdfa
Copy link
Member

@hasdfa hasdfa commented May 6, 2025

Fixes #17587

@hasdfa hasdfa self-assigned this May 6, 2025
@hasdfa hasdfa added the scope: x-telemetry Changes related to the @mui/x-telemetry. label May 6, 2025
@github-actions
Copy link

github-actions bot commented May 6, 2025

Thanks for adding a type label to the PR! 👍

@hasdfa hasdfa requested a review from michelengelen May 6, 2025 14:09
@mui-bot
Copy link

mui-bot commented May 6, 2025

Deploy preview: https://deploy-preview-17720--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 0744b4d

@michelengelen michelengelen added the type: bug It doesn't behave as expected. label May 6, 2025
@LukasTy LukasTy changed the title [x-telemetry] Fix esm dynamic import [telemetry] Fix ESM dynamic import May 9, 2025
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me if the move towards a static import does not have any negative side-effects. 👌
However, I think we have a problem in the build process...
All the imports get suffixed with .js, whereas dynamic imports don't. 🙈
cc @mui/code-infra

@Janpot
Copy link
Member

Janpot commented May 9, 2025

All the imports get suffixed with .js, whereas dynamic imports don't.

That was actually fixed in the latest version of @mui/internal-babel-plugin-resolve-imports (2.0.1).
🙏 Thank you for doing the proper root cause analysis, I believe this would affect the exceljs import as well forget about that, it doesn't affect bare specifiers, I spoke too fast.

@LukasTy
Copy link
Member

LukasTy commented May 9, 2025

@Janpot Thanks for remembering that fix. 👌
I've checked the built output on your PR, and it looks like it should fix the issue. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: x-telemetry Changes related to the @mui/x-telemetry. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[x-telemetry] Can't resolve './get-context' in '\node_modules\@mui\x-telemetry\esm\runtime'

5 participants