Skip to content
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

[tree view] TreeItem import not found #16280

Open
hey-kuldeep opened this issue Jan 21, 2025 · 1 comment
Open

[tree view] TreeItem import not found #16280

hey-kuldeep opened this issue Jan 21, 2025 · 1 comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@hey-kuldeep
Copy link

hey-kuldeep commented Jan 21, 2025

Summary

import React, { useState } from 'react';
import './Dragable.css';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
import { Box } from '@mui/material';
import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView';
import { TreeItem } from '@mui/x-tree-view/TreeItem';

return (
<Box sx={{ minHeight: 352, minWidth: 250 }}>


















);
};

export default DragableInputModal;

export 'TreeItem' (imported as 'TreeItem') was not found in '@mui/x-tree-view/TreeItem' (module has no exports)

I am getting this issue and am not getting in solution on web

Examples

import React, { useState } from 'react';
import './Dragable.css';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
import { Box } from '@mui/material';
import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView';
import { TreeItem } from '@mui/x-tree-view/TreeItem';

return (
<Box sx={{ minHeight: 352, minWidth: 250 }}>


















);
};

export default DragableInputModal;

export 'TreeItem' (imported as 'TreeItem') was not found in '@mui/x-tree-view/TreeItem' (module has no exports)

I am getting this issue and am not getting in solution on web

Motivation

No response

Search keywords: mui

@hey-kuldeep hey-kuldeep added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 21, 2025
@mj12albert mj12albert transferred this issue from mui/material-ui Jan 21, 2025
@zannager zannager added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Jan 21, 2025
@alexfauquette
Copy link
Member

Did you install correctly the package?

Without a reproduction of the bug it will be hard for the team to understand what is the root cause of your issue.

The best is to recreate your issue in a codesanbox. Forcing the version of the package to be the same as the one in you project could help.

Or running the npx @mui/envinfo and copy here the returned values as recommended in the issue template.

@alexfauquette alexfauquette changed the title mui tree view [tree view] TreeItem import not found Jan 21, 2025
@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants