jhipster / generator-jhipster-migrate

JHipster blueprint to perform upgrades and config changes.
2 stars 1 forks source link

Migration stops due to undefined spinner in verbose mode #15

Closed cuyahoga closed 4 months ago

cuyahoga commented 5 months ago

Migrating an application for the first time from 7.9.3 to 8.4.0, the blueprint stops when regenerating the source app. Run with jhipster-migrate --verbose and selected default values for all prompts;

ERROR! failed to regenerate source application using JHipster current
ERROR! An error occured while running jhipster-migrate:migrate#prepareMigrateBranch
ERROR! ERROR! Cannot read properties of undefined (reading 'fail')
TypeError: Cannot read properties of undefined (reading 'fail')
    at default.regenerate (file:///C:/apps/nvm/v20.12.2/node_modules/generator-jhipster-migrate/generators/migrate/generator.js:551:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async default.prepareMigrateBranch (file:///C:/apps/nvm/v20.12.2/node_modules/generator-jhipster-migrate/generators/migrate/generator.js:327:9)
    at async default.executeTask (file:///C:/apps/nvm/v20.12.2/node_modules/generator-jhipster-migrate/node_modules/yeoman-generator/dist/actions/lifecycle.js:244:13)
    at async runLoop.add.once (file:///C:/apps/nvm/v20.12.2/node_modules/generator-jhipster-migrate/node_modules/yeoman-environment/dist/environment-base.js:395:17)

Remedied with a quick check before usage of installSpinner, same as is done for other spinners. Awaiting commit...

mshima commented 5 months ago

@cuyahoga can you provide a PR?

cuyahoga commented 5 months ago

@mshima yep, have one ready to contribute

siuburu commented 5 months ago

@cuyahoga how did you fix this?