【问题标题】:Gatsby-aws user auth starter will not run, unhandled rejectionGatsby-aws 用户 auth starter 不会运行,未处理的拒绝
【发布时间】: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


    【解决方案1】:

    我尝试使用 YARN 而不是 NPM,它成功了。确保首先删除 node_modules 和 package.lock 文件夹和文件。

    【讨论】:

      猜你喜欢
      • 2017-09-27
      • 2018-12-18
      • 2019-03-15
      • 2016-07-21
      • 2021-12-30
      • 1970-01-01
      • 1970-01-01
      • 2017-10-25
      • 2019-04-16
      相关资源
      最近更新 更多