-
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
Describe the bug
Seems like the addition of the default:
field to the package.json export in v0.23.3 prevents Runed from being run correctly in consumers of the package in my monorepo that uses Runed indirectly through Bits-UI. It does however work in the package itself. My temporary fix is to add Runed to all consumers.
Reproduction
Create monorepo with a components package which contain Shadcn-Svelte/Bits-UI components and consume this package in another package or app
Logs
https://svelte.dev/e/lifecycle_outside_component
at Module.lifecycle_outside_component (/node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/shared/errors.js:27:17)
at get_or_init_context_map (/node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/server/context.js:51:5)
at setContext (/node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/server/context.js:28:2)
at Context.set (/node_modules/.pnpm/[email protected][email protected]/node_modules/runed/dist/utilities/context/context.js:63:16)
at useDialogRoot (/node_modules/.pnpm/[email protected][email protected]/node_modules/bits-ui/dist/bits/dialog/dialog.svelte.js:292:30)
at Module.Dialog (/node_modules/.pnpm/[email protected][email protected]/node_modules/bits-ui/dist/bits/dialog/components/dialog.svelte:9:15)
at $$render_inner (/packages/analytics/src/lib/components/CookieWall.svelte:54:32)
at CookieWall (/packages/analytics/src/lib/components/CookieWall.svelte:174:3)
at _layout (/apps/boiler/src/routes/+layout.svelte:22:38)
at Root (/apps/boiler/.svelte-kit/generated/root.svelte:63:3)
System Info
System:
OS: macOS 15.3
CPU: (12) arm64 Apple M2 Max
Memory: 2.93 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.13.1 - /usr/local/bin/node
npm: 10.9.2 - /usr/local/bin/npm
pnpm: 9.15.5 - ~/Library/pnpm/.tools/pnpm/9.15.5/bin/pnpm
bun: 1.2.2 - /opt/homebrew/bin/bun
Browsers:
Chrome: 132.0.6834.160
Safari: 18.3
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels