Upgrade to Thulite v2
This guide will help you migrate from Thulite v1 to Thulite v2.
Prerequisites
- Node.js -
v20.11.0
or higher — runnode -v
to check. - Hugo extended -
v0.125.0
or higher — runhugo version
to check. - Text editor - We recommend VS Code — see also Editor Setup.
- Terminal - Thulite is accessed through its command-line interface (CLI).
Upgrading
You can upgrade your project by following the steps below.
1. Clean dependencies
Clean dependencies currently installed to avoid conflicts.
2. Update package.json
Replace the contents of your project’s package.json
with the following:
3. Install Thulite
Install the latest Thulite project dependencies inside your project:
4. Install Prettier and Vite
Install the latest version of Prettier and Vite — as devDependencies
:
5. Install integrations
Optionally, install the the recommended integrations in your project:
Configuration
Check your project’s configuration for Thulite and the recommended integrations:
Known Issues
ENOENT
When you get an ENOENT
error message, run the following command: