我一直在下面收到此错误,但是当我更新Resolutions.graphql文件以纠正错字时,我仍然收到错误。
尝试重新启动Meteor服务器,但仍然收到错误。
我想念什么吗?
Error: Unknown type "Sting". Did you mean "String"?
at assertValidSDL (/Users/macos/apollo/node_modules/graphql/validation/validate.js:89:11)
at Object.buildASTSchema (/Users/macos/apollo/node_modules/graphql/utilities/buildASTSchema.js:76:34)
at Object.buildSchemaFromTypeDefinitions (/Users/macos/apollo/node_modules/graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js:23:28)
at makeExecutableSchema (/Users/macos/apollo/node_modules/graphql-tools/dist/makeExecutableSchema.js:26:29)
at register-api.js (imports/startup/server/register-api.js:22:16)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at Module.moduleLink [as link] (/Users/macos/.meteor/packages/modules/.0.13.0.1pfv79d.ujmak++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:38:38)
at index.js (imports/startup/server/index.js:1:8)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at Module.moduleLink [as link] (/Users/macos/.meteor/packages/modules/.0.13.0.1pfv79d.ujmak++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:38:38)
at init.js (server/init.js:1:8)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at require (packages/modules-runtime.js:258:21)
Exited with code: 1
Your application is crashing. Waiting for file change.
Resolutions.graphql:
type Resolutions {
_id: String!
name: String!
}
答案 0 :(得分:0)
最后使用流星重置而不是cmd + c然后使用流星