apps/help.mantine.dev/src/pages/q/mantine-provider-missing.mdx
import { Layout } from '@/layout';
export const meta = { title: 'MantineProvider was not found in component tree. What should I do?', description: 'Learn how to resolve MantineProvider issues', slug: 'mantine-provider-missing', category: 'common', tags: ['provider', 'error'], created_at: 'December 28, 2023', last_updated_at: 'December 28, 2023', };
export default Layout(meta);
<ErrorMessage error="@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app." />The error above occurs in the following cases:
MantineProvider in your app at allMantineProvider context@mantine/* packages in your application.
For example, you have @mantine/[email protected] and @mantine/[email protected] installed.@mantine/core package in the bundle. This may
happen if your project is a monorepo and you have multiple node_modules folders.Steps to resolve the issue:
MantineProvider in your app and it wraps all Mantine components.@mantine/core in your app. If you are using a
monorepo, make sure all packages depend on the same version of @mantine/core.node_modules folder and running npm install or
yarn install again.