-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
generateClassName prefix not working in Production #1042
Comments
Without some reproduction we won't have any prio on this. It should be possible to use production mode on codesandbox. |
Noted will try to provide a minimal reproducible code on codesandbox.io |
Not at all, |
@kof I have some reproduction for this. This code sandbox has a small react-jss setup using the following example:
Link to the sandbox: https://codesandbox.io/s/react-jss-playground-0e14b In prod mode, the classnames look like |
Actually I found that this was fixed in #901. I understand that there is no point backporting the fix |
Expected behavior:
When using the generateClassName function in production. We expect the stylesheet.options to be populated with appropriate meta data and classNames.
As a result all the class names are prefixed with undefined,
Describe the bug:
Class names are undefined:
In contrast in development it works fine:
And it is prefixed with appropriate class name in development mode.
The stylesheet options is not populated and instead it is undefined.
Codesandbox link:
Please create a codesandbox.io with the issue. Make it as minimal as possible as this will help us find the bug quicker.
Unfortunately it happens only in production and not in development.
So I doubt in codesandbox it will be exactly reproducible.
Versions (please complete the following information):
Code Snippets:
The text was updated successfully, but these errors were encountered: