【发布时间】:2020-03-30 20:03:58
【问题描述】:
我克隆了gatsby-starter-auth-aws-amplify(在https://www.gatsbyjs.org/starters/seabeams/gatsby-starter-auth-aws-amplify/ 找到),初始化了repo 并安装了所有依赖项并不断收到此错误:
UNHANDLED REJECTION 无法将以下值创建为 TypeComposer: 日期。
Error: Cannot create as TypeComposer the following value: Date.
- SchemaComposer.js:365 SchemaComposer.createTempTC
[gatsby-starter-auth-aws-amplify]/[graphql-compose]/lib/SchemaComposer.js:365: 11
- SchemaComposer.js:563 SchemaComposer.addAsComposer
[gatsby-starter-auth-aws-amplify]/[graphql-compose]/lib/SchemaComposer.js:563: 27
- schema-composer.js:35 createSchemaComposer
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/schema/schema-composer.js:35:1 8
- index.js:135 Object.build
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/schema/index.js:135:26
- index.js:418 async module.exports
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/bootstrap/index.js:418:3
- develop.js:429 async module.exports
[gatsby-starter-auth-aws-amplify]/[gatsby]/dist/commands/develop.js:429:7
有人经历过吗?我在 github 上发现了几个错误实例,但人们发现的解决方案过于具体,无法适用于我。
【问题讨论】:
标签: authentication gatsby aws-amplify