ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

Error when running init with template

Open codeaholicguy opened this issue 9 months ago • 1 comments

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

codeaholicguy avatar Feb 24 '26 15:02 codeaholicguy

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.

codeaholicguy avatar Feb 24 '26 16:02 codeaholicguy