将Logto从1.22.0升级到1.23.0后无法使用,错误日志如下:
> cli
> logto db seed --swe
info Seeding skipped
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.0.0
npm notice To update run: npm install -g npm@11.0.0
npm notice
> start
> cd packages/core && NODE_ENV=production node .
(node:44) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
cache warn No Redis client initialized, skipping
pre error Found undeployed database alterations, you must deploy them first by npm run alteration deploy command.
See https://docs.logto.io/docs/references/using-cli/database-alteration for reference.
index error Error while initializing app:
index error Error: Undeployed database alterations found.
at checkAlterationState (file:///etc/logto/packages/core/build/main-UGZSAMPB.js:29204:9)
at async Promise.all (index 0)
at async checkPreconditions (file:///etc/logto/packages/core/build/main-UGZSAMPB.js:29168:3)
at async Promise.all (index 3)
at async file:///etc/logto/packages/core/build/main-UGZSAMPB.js:29240:3
期间没有对任何数据进行过改动,恢复1.22.0的旧版备份后可正常使用。