ai-devkit
ai-devkit copied to clipboard
Error when running init with template
Context:
- Running
ai-devkit init --template fullstack-engineer.yaml
Error:
/.npm/_npx/45d16d76501702a8/node_modules/ai-devkit/dist/lib/Config.js:91
if (!phases.includes(phase)) {
^
TypeError: Cannot read properties of undefined (reading 'includes')
at ConfigManager.addPhase (/Users/hoangnguyen/.npm/_npx/45d16d76501702a8/node_modules/ai-devkit/dist/lib/Config.js:91:21)
at async Command.initCommand (/Users/hoangnguyen/.npm/_npx/45d16d76501702a8/node_modules/ai-devkit/dist/commands/init.js:221:13)
Node.js v24.13.1
This only happens because of an old version of .ai-devkit.json that includes initializedPhases instead of phases. Fixed in https://github.com/codeaholicguy/ai-devkit/commit/99401a7334534fd6f0c8ebf300c4bb2209fd4bc9.