pnpm install
NODE_ENV=production pnpm dev
Update src/App.tsx
to reproduce the issue.
// does not work (reproducing the issue)
const _xTreeView = require('@mui/x-tree-view');
const { TreeView, TreeItem } = _xTreeView;
// works
// import {TreeView, TreeItem} from '@mui/x-tree-view';