rem()
is not available in React Server Component
#5119
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
What package has an issue
@mantine/core
Describe the bug
The
rem()
function is not available in the React Server Component. When importingrem
from a React Server Component, the following error appears:What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.1.5
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
None
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
It appears that the published
rem.mjs
andrem.js
contain the'use client'
directive, which is completely unnecessary.The text was updated successfully, but these errors were encountered: