Closed mcamendoza1 closed 2 years ago
Did you follow the steps outlined here?
yes, i did follow it.
import '../styles/globals.css'
import Head from 'next/head'
import { MantineProvider } from '@mantine/core'
function MyApp({ Component, pageProps }) {
return (
<>
<Head>
<title>Service Zero</title>
<meta
name='viewport'
content='minimum-scale=1, initial-scale=1, width=device-width'
/>
</Head>
<MantineProvider
theme={{ colorScheme: 'light' }}
withGlobalStyles
withNormalizeCSS
>
<Component {...pageProps} />
</MantineProvider>
</>
)
}
export default MyApp
Duplicate of #1214, see possible solutions in that issue
@rtivital
I did follow pattern.
import { createGetInitialProps } from '@mantine/next'
import Document from 'next/document'
const getInitialProps = createGetInitialProps()
export default class _Document extends Document {
static getInitialProps = getInitialProps
}
See my comment in #1214, I cannot provide any other assistance with resolving these kind of issues
What package has an issue
@mantine/core
Describe the bug
Current my application uses
'@mantine/core'
andnextjs
. When refreshing the index.js / home page, I've notice the un-styled components first, is there a way to avoid that? for me it seems loading on UXIn which browser did the problem occur
Chrome, Firebox
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
No response
Are you willing to participate in fixing this issue and create a pull request with the fix
No response
Possible fix
No response