Update dependencies with npm-check-updates
Run the following script to update package.json file:
Then install new dependencies with your package manager. For example, if you use yarn, run
All done! Your dependencies are up to date.
ncu script
You can install npm-check-updates
globally and run it without npx:
After the package is installed, run the following command to update @mantine/*
dependencies:
Update dependencies manually
If the method above does not work for you or you want to update @mantine/* dependencies
to a specific version, you can do it manually. Open package.json file, it may look
something like this:
Update dependencies version in package.json file to the desired version.
Note that all @mantine/* packages must have the same version.
For example, if you want to update @mantine/* dependencies to 7.3.0 and
postcss-preset-mantine to 1.11.0, you package.json file should be
updated like this:
Then install new dependencies with your package manager. For example, if you use yarn, run
All done! Your dependencies are up to date.
How do I know which version is the latest?
All @mantine/* packages have the same version, so you can check the latest
version of @mantine/hooks package on npm. It
is also displayed near the Mantine logo on the documentation home page.
To check the latest version of postcss-preset-mantine package, visit
postcss-preset-mantine package on npm.