-
-
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
[DataGrid] DataGridPro type check fails at build with themeAugmentation #11394
Comments
Hey @AntonWiliot I guess you are still using |
No, we don't use explicit imports of |
@AntonWiliot I tried, but cannot reproduce the issue. Could you provide us with a minimal reproduction example and include your typescript config? @cherniavskii The only thing that I could find (that did not make much sense to me - or maybe i am missing something) was this part in the for Prop mui-x/packages/grid/x-data-grid-pro/src/typeOverloads/modules.ts Lines 64 to 76 in c85d38b
for Premium mui-x/packages/grid/x-data-grid-premium/src/typeOverloads/modules.ts Lines 91 to 109 in c85d38b
Shouldn't this be ... declare module '@mui/x-data-grid-pro' {
... ... for Pro, and ... declare module '@mui/x-data-grid-premium' {
... ... for Premium? |
Minimal example of file where the problem occurs
Typescript config
|
Hi @AntonWiliot |
The issue has been inactive for 7 days and has been automatically closed. If you think that it has been incorrectly closed, please reopen it and provide missing information (if any) or continue the last discussion. |
I've cloned your repository https://github.com/cherniavskii/data-grid-pro-theme-augmentation, installed packages, run
The only thing that you use |
Thanks, I've upgraded |
We'd prefer to see the issues in the packages we use. Sure if something not critical blocks our deployment |
@cherniavskii i'll add this to the board, ok? |
The problem in depth 🔍
After we switched the type definitions in our MUI theme settings from "@mui/x-data-grid/themeAugmentation" to "@mui/x-data-grid-pro/themeAugmentation" -
import type {} from "@mui/x-data-grid-pro/themeAugmentation";
- the next typescript errors appeared:The issue appears at build stage when tsc command is run. The problem is observed for Pro version only, Community version has no issues. Please could you check is it the issue in the library types or may be the problem in our configuration (envinfo details are added).
Your environment 🌎
`npx @mui/envinfo`
System: OS: macOS 14.0 Binaries: Node: 18.17.1 - /usr/local/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 9.6.7 - /usr/local/bin/npm Browsers: Chrome: 120.0.6099.71 Edge: Not Found Safari: 17.0 npmPackages: @emotion/react: ^11.11.0 => 11.11.1 @emotion/styled: ^11.11.0 => 11.11.0 @mui/base: 5.0.0-beta.26 @mui/core-downloads-tracker: 5.14.20 @mui/icons-material: ^5.14.0 => 5.14.19 @mui/lab: ^5.0.0-alpha.140 => 5.0.0-alpha.155 @mui/material: ^5.14.0 => 5.14.20 @mui/private-theming: 5.14.20 @mui/styled-engine: 5.14.20 @mui/styled-engine-sc: ^5.14.0 => 5.14.12 @mui/system: 5.14.20 @mui/types: 7.2.10 @mui/utils: 5.14.20 @mui/x-data-grid: 6.18.4 @mui/x-data-grid-pro: ^6.18.0 => 6.18.4 @mui/x-license-pro: 6.10.2 @types/react: ^17.0.19 => 17.0.71 react: ^17.0.2 => 17.0.2 react-dom: ^17.0.2 => 17.0.2 styled-components: ^5.3.9 => 5.3.11 typescript: ^5.3.0 => 5.3.3Search keywords: datagridpro typescript error
Order ID: 71637
The text was updated successfully, but these errors were encountered: