我正在做演练,以构建一个完整的堆栈应用程序与放大器,并被困在第三个模块,添加了auth。我遵循所有的指令到一个T,但我的构建失败了,说有这样的无效的功能标志。
# Starting phase: build
2022-02-14T02:47:02.527Z [INFO]: [31mInvalid feature flag configuration[39m
2022-02-14T02:47:02.530Z [INFO]: [31mThese feature flags are defined in the "amplify/cli.json" configuration file and are unknown to the currently running Amplify CLI:[39m
[31m - project[39m
[31m - graphqltransformer.transformerversion[39m
[31m - graphqltransformer.suppressschemamigrationprompt[39m
[31m - graphqltransformer.securityenhancementnotification[39m
[31m - graphqltransformer.showfieldauthnotification[39m
[31m - auth.useenabledmfas[39m
[31mThis issue likely happens when the project has been pushed with a newer version of Amplify CLI, try updating to a newer version.[39m
[31mEnsure that the CI/CD pipeline is not using an older or pinned down version of Amplify CLI.[39m
[31mLearn more about feature flags: https://docs.amplify.aws/cli/reference/feature-flags[39m
2022-02-14T02:47:02.539Z [ERROR]: !!! Build failed
2022-02-14T02:47:02.539Z [ERROR]: !!! Non-Zero Exit Code detected
2022-02-14T02:47:02.539Z [INFO]: # Starting environment caching...
2022-02-14T02:47:02.540Z [INFO]: # Uploading environment cache artifact...
2022-02-14T02:47:02.602Z [INFO]: # Environment caching completed
Terminating logging...
这是我的扩容/cli.json
{
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"securityenhancementnotification": false,
"showfieldauthnotification": false
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
}
}
}
我更新节点,aws-放大,并放大所有的最新版本.这里有什么问题?
发布于 2022-02-20 11:03:19
这似乎是一个不同的版本放大cli之间的aws构建映像和您的机器。
检查您的版本放大cli:
$ amplify --version并在生成映像中重写放大CLI的版本: AWS扩增控制台、->构建设置、->构建图像设置、->动态包更新->扩增CLI

发布于 2022-07-29 14:40:34
对于仍然存在问题的人,请遵循Gabriel的方法,并确保手动将控制台上的版本从最新版本(即预先键入的输入)更改为与您的CLI版本完全匹配的版本。
也要确保在“编辑构建图像设置”选择放大器CLI,因为它不是第一个可用的选项。
https://stackoverflow.com/questions/71106728
复制相似问题