-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Description
What version of Bun is running?
1.3.11-canary.1+d50ab984c
What platform is your computer?
Darwin 25.3.0 arm64 arm
What steps can reproduce the bug?
A sort of follow-up to #27860. Repro is here: https://github.com/bensaufley/bun-module-issue-minimal-repro/tree/chakra-example
- Install Chakra UI and CLI
chakra add snippetfortoasterandprovider- Add Provider and Toaster components to React UI
- Run dev server
- Visit dev server in browser
Other ways to encounter this are to use Chakra's namespaced component imports - for example, import { Tooltip } from '@chakra-ui/react'; and then use <Tooltip.Root> etc.
What is the expected behavior?
Page renders normally
What do you see instead?
Runtime Error: You are trying to create a style element with an undefined component
Additional information
Chakra's use of barrel exports/namespaced imports is a code style I don't personally love, but it's common enough and should absolutely work. I can get around most of it by using non-namespaced imports, but toaster actually uses chakra library code that uses namespaced imports.
Reactions are currently unavailable