我有我的全局 Angular CLI 版本(13.0.1),项目中的本地版本是(10.2.3)。\n一切都很好,我对一些组件做了一些更改(我没有触及 package.json)并且当我运行管道(bitbucket 管道)时,我在构建步骤中遇到此错误:
\nERROR in node_modules/ngx-file-drag-drop/lib/ngx-file-drag-drop/ngx-file-drag-drop.component.d.ts:45:21 - error TS2694: Namespace '"/opt/atlassian/pipelines/agent/build/new-client/node_modules/@angular/core/core"' has no exported member '\xc9\xb5\xc9\xb5FactoryDeclaration'.\n45 static \xc9\xb5fac: i0.\xc9\xb5\xc9\xb5FactoryDeclaration<NgxFileDragDropComponent, never>;\n ~~~~~~~~~~~~~~~~~~~~\nnode_modules/ngx-file-drag-drop/lib/ngx-file-drag-drop/ngx-file-drag-drop.component.d.ts:46:21 - error TS2694: Namespace '"/opt/atlassian/pipelines/agent/build/new-client/node_modules/@angular/core/core"' has no exported member '\xc9\xb5\xc9\xb5ComponentDeclaration'.\n46 static \xc9\xb5cmp: i0.\xc9\xb5\xc9\xb5ComponentDeclaration<NgxFileDragDropComponent, "ngx-file-drag-drop", never, { "disabled": "disabled"; "multiple": "multiple"; "displayFileSize": "displayFileSize"; "borderColor": "activeBorderColor"; "accept": "accept"; "emptyPlaceholder": "emptyPlaceholder"; }, { "valueChanged": "valueChanged"; }, never, never>;\n ~~~~~~~~~~~~~~~~~~~~~~\nnode_modules/ngx-file-drag-drop/lib/byte.pipe.d.ts:7:21 - error TS2694: Namespace '"/opt/atlassian/pipelines/agent/build/new-client/node_modules/@angular/core/core"' has no exported member '\xc9\xb5\xc9\xb5FactoryDeclaration'.\n7 static \xc9\xb5fac: i0.\xc9\xb5\xc9\xb5FactoryDeclaration<BytePipe, never>;\n ~~~~~~~~~~~~~~~~~~~~\nnode_modules/ngx-file-drag-drop/lib/byte.pipe.d.ts:8:22 - error …
Run Code Online (Sandbox Code Playgroud) 我正在使用Amplify,我将身份验证添加到我的应用程序中,我的 graphQL 架构具有私有规则,所有事情在我的本地都运行良好,每个 graphQl api 调用,它包含访问令牌和 appSync 接受我的请求。但是当我部署我的应用程序时,我收到一个错误,因为我的所有 graphQl 请求仍然使用api-key而不是访问令牌。
在我的本地:身份验证后一切正常。
在生产中: graphQl 在身份验证后仍然具有 api-key
angular ×1
aws-amplify ×1
aws-appsync ×1
bitbucket ×1
graphql ×1
node.js ×1
npm ×1
typescript ×1