-
Notifications
You must be signed in to change notification settings - Fork 7
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
Styles are not loaded for SSR #237
Comments
+1 |
1 similar comment
+1 |
It`s Next.js problem - https://nextjs.org/docs/messages/css-npm I found a solution for Next.js. If you are using Next.js 13.1 or higher, you should define the transpilePackages option in /** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@gravity-ui/navigation', '@gravity-ui/uikit'],
};
module.exports = nextConfig; Example: Before Next.js 13 you can try next-transpile-modules |
@max-portador It's still "blinking" in your example, styles are properly loaded on the client side only. |
I don't use Next.js at all and the problem is the same. Moreover, the problem is that when this package building, the styles are bundled to JS, not to separate CSS files. |
+1 |
No description provided.
The text was updated successfully, but these errors were encountered: