我克隆了gatsby-starter-auth-aws-amplify (在https://www.gatsbyjs.org/starters/seabeams/gatsby-starter-auth-aws-amplify/中找到),初始化了回购并安装了所有的依赖项,并不断地得到这个错误:
未处理的拒绝不能以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上发现了几个错误实例,但是人们发现的解决方案都是特定于案例的,无法适用于我。
发布于 2020-04-13 15:53:57
我试着用纱线代替NPM,它起了作用。确保您首先删除node_modules和package.lock文件夹和文件。
https://stackoverflow.com/questions/60938653
复制相似问题