kt3k / kt3k/packup

null rendered into the bundle when bundling a @mui/lab/TreeView component

Open
#51 1 comment 0 reactions 0 assignees View on GitHub

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

aaa

If I use vite to bundle then the error goes away.

To Reproduce Steps to reproduce the behavior:

  1. I created this repo with reproduction and proof that it works with vite
  2. There are instructions in the README and below
  3. Clone the repo
  4. deno task build
  5. deno 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.

aaa

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.