You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Dependencies check up
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 ofSpotlight.Root
), SpotlightRoot is not exported from@mantine/spotlight
, leading to an error. VS Code does suggest importing fromimport { 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
The text was updated successfully, but these errors were encountered: