Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpotlightRoot not exported #6708

Closed
1 of 2 tasks
wrobbinz opened this issue Aug 21, 2024 · 0 comments · Fixed by #6710
Closed
1 of 2 tasks

SpotlightRoot not exported #6708

wrobbinz opened this issue Aug 21, 2024 · 0 comments · Fixed by #6710

Comments

@wrobbinz
Copy link

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.12.1

What package has an issue?

@mantine/spotlight

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

All

Describe the bug

When using Spotlight's compound components, and using them without dot notation (SpotlightRoot instead of Spotlight.Root), SpotlightRoot is not exported from @mantine/spotlight, leading to an error. VS Code does suggest importing from import { SpotlightRoot } from 'node_modules/@mantine/spotlight/lib/SpotlightRoot'; but that results in a compile error.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

I fixed this by patching @mantine/spotlight to export SpotlightRoot in cjs and esm index files and got it working.

Self-service

  • I would be willing to implement a fix for this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant