Closed damisparks closed 2 months ago
We are using DataGridPro, Date and Time Pickers Pro, and we do not have types issues.
That's a bit weird because the data grid uses the same pattern to import from the internals with a mix of interfaces and functions. And if I add the verbatimModuleSyntax
in the tsconfig.json
of the data grid pro, I get similar errors
Maybe because the tree-view-pro publish it's current directory and not the build one π
@damisparks could you try again with fthe following version of the package?
"@mui/x-tree-view-pro": "https://pkg.csb.dev/mui/mui-x/commit/1122e42d/@mui/x-tree-view"
To do so, you can copy the previous line in you package.json
and run the installation command. It would help to know if the PR solves your issue or if we need to continue investigating
@alexfauquette Thanks for the swift response. I appreciate you. LGTM ππΎ No more errors
:warning: This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@damisparks: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
Steps to reproduce
No response
Current behavior
When we run our type-check: We have the following errors.
Expected behavior
The expected behaviour is that our type-check should not throw an error. We are using DataGridPro, Date and Time Pickers Pro, and we do not have
types
issues.Context
In our
tsconfig.json
we have the following configuration.If we remove the
verbatimModuleSyntax
or set it tofalse
in ourtsconfig.json,
there are no errors.Question
If those imports are used as
types
, why not add thetype
modifier or are there any side effects?Your environment
``` System: OS: macOS 14.6.1 Binaries: Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node npm: 10.8.1 - ~/.nvm/versions/node/v20.14.0/bin/npm pnpm: 8.12.0 - ~/.nvm/versions/node/v20.14.0/bin/pnpm Browsers: Chrome: 127.0.6533.100 Edge: 127.0.2651.98 Safari: 17.6 npmPackages: @emotion/react: 11.13.0 @emotion/styled: ^11.11.5 => 11.13.0 @mui/base: ^5.0.0-beta.46 => 5.0.0-dev.20240529-082515-213b5e33ab @mui/core-downloads-tracker: 5.16.6 @mui/icons-material: ^5.15.18 => 5.16.6 @mui/material: ^5.15.18 => 5.16.6 @mui/private-theming: 5.16.6 @mui/styled-engine: 5.16.6 @mui/system: 5.16.6 @mui/types: 7.2.15 @mui/utils: ^5.15.14 => 5.16.6 @mui/x-data-grid: 7.12.0 @mui/x-data-grid-pro: ^7.7.0 => 7.12.0 @mui/x-date-pickers: 7.12.0 @mui/x-date-pickers-pro: ^7.11.1 => 7.12.0 @mui/x-internals: 7.12.0 @mui/x-license: ^7.0.0 => 7.12.0 @mui/x-tree-view: 7.12.0 @mui/x-tree-view-pro: ^7.12.0 => 7.12.0 @types/react: ^18.2.79 => 18.3.3 react: ^18.2.0 => 18.3.1 react-dom: ^18.2.0 => 18.3.1 typescript: ^5.2.2 => 5.5.4 ```npx @mui/envinfo
Search keywords: [tree view] type-only Order ID: 79397