Skip to content

Settings need migrating

error: axle.toml sets env at line 3, column 7, which is now called globalEnv at the root
hint: Run axle migrate to update axle.toml, or rename the key yourself.
error: these files need migrating: axle.toml, config/axle.toml
hint: Run axle migrate, then commit the files it changes.

A setting in axle.toml, or in a preset it extends, was renamed or changed shape in this version of Axle. Axle stops rather than read it the old way. When the file comes from a package in node_modules, the hint says to update that package, or to ask its authors to rename the key. The second message comes from axle migrate --check, which found files axle migrate would change, including the settings of plugins that can migrate them. With --upgrade, it also counts the files plugins would change to upgrade their tools, and the hint says to run axle migrate --upgrade.

Run axle migrate, or axle migrate --upgrade when the hint says so, check the changes, and commit them. --dry-run shows them first. The list of migrations says what each old setting is now called, if you’d rather change it yourself.