V2
Use this guide to migrate your project from Thulite v1 to Thulite v2.
Prerequisites
- Hugo (latest extended or extended/deploy edition)
- Thulite (latest version)
- Node.js/npm (latest LTS version)
Updating
Follow the steps below to update your project.
Remove currently installed dependencies to avoid version conflicts:
Update
package.jsonReplace the contents of your project’s
package.jsonwith the following template:// package.json { "name": "thulite-project", "version": "0.0.0", "description": "Thulite", "author": "Thulite", "license": "MIT", "scripts": { "create": "hugo new", "dev": "hugo server --disableFastRender --noHTTPCache", "format": "prettier **/** -w -c", "build": "hugo --minify --gc", "preview": "vite preview --outDir public" }, "engines": { "node": ">=20.11.0" } }Install the latest Thulite dependency in your project:
Install the latest versions of Prettier and Vite as
devDependencies:Optionally, install the recommended integrations in your project:
Need to continue?
After upgrading Thulite to the latest version, you may not need to make any changes to your project at all!
If you notice errors or unexpected behavior, review the sections below to identify project changes you may still need to make.
Configuration
Review your project configuration for Thulite and the recommended integrations:
Known Issues
ENOENT
If you get an ENOENT error, run the following command: