-
-
Notifications
You must be signed in to change notification settings - Fork 453
Open
Labels
pending-triageSomeone (usually a maintainer) needs to look into this to see if it's a bugSomeone (usually a maintainer) needs to look into this to see if it's a bug
Description
Describe the bug
I'm using React to build a content script, first I try use createShadowRootUi to mount onto page, but is doens't work, then I change to createIntegratedRootUi it works. I use tailwindcss + React.
Reproduction
Steps to reproduce
- download zip file, delete node_modules dir, then run
pnpm i - run
npm run dev, then open youtube, nothing shows on page - modify content.tsx, code is below
const floatUi = createIntegratedUi(ctx, {
position: 'inline',
anchor: 'body',
onMount: (container) => {
const root = ReactDOM.createRoot(container);
root.render(<FloatToolbar />);
return root;
},
onRemove: (root) => {
root?.unmount();
},
});
after refresh you can see a float box on page
System Info
System:
OS: macOS 15.6.1
CPU: (14) arm64 Apple M4 Pro
Memory: 2.78 GB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.12.0 - /Users/zsh/.nvm/versions/node/v24.12.0/bin/node
npm: 11.6.2 - /Users/zsh/.nvm/versions/node/v24.12.0/bin/npm
pnpm: 10.26.2 - /Users/zsh/Library/pnpm/pnpm
npmPackages:
wxt: ^0.20.6 => 0.20.13Used Package Manager
pnpm
Validations
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
pending-triageSomeone (usually a maintainer) needs to look into this to see if it's a bugSomeone (usually a maintainer) needs to look into this to see if it's a bug