null rendered into the bundle when bundling a @mui/lab/TreeView component
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 337
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug A clear and concise description of what the bug is.
I encountered a weird bug when trying to render a @mui/lab/TreeView component.
When packup is bundling the assets, the error below happens
If I use vite to bundle then the error goes away.
To Reproduce Steps to reproduce the behavior:
- I created this repo with reproduction and proof that it works with vite
- There are instructions in the README and below
- Clone the repo
deno task builddeno task dev --app-path=./dist
Expected behavior A clear and concise description of what you expected to
It should run without errors
Screenshots If applicable, add screenshots to help explain your problem.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone the linked packup-reproduction repository and read its README, then run deno task build followed by deno task dev --app-path=./dist to reproduce the TreeView bundle failure. Compare the packup output with the working Vite bundle and trace where null is introduced; done means the reproduction runs without errors like the Vite version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, typescript, vite
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100