{"id":47959,"date":"2022-12-02T11:46:22","date_gmt":"2023-10-01T18:14:50","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/"},"modified":"2024-01-15T12:27:54","modified_gmt":"2024-01-15T04:27:54","slug":"aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/","title":{"rendered":"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6"},"content":{"rendered":"<h1>\u53d1\u751f\u7684\u95ee\u9898<\/h1>\n<p>\u5728\u6784\u5efa\u6267\u884c\u65f6\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef<\/p>\n<pre class=\"post-pre\"><code>1:30 Could not find a declaration file for module 'graphql\/language\/ast'. \r\n\r\n  Try `npm install @types\/graphql` if it exists or add a new declaration (.d.ts) file co\r\nntaining `declare module 'graphql\/language\/ast';`\r\n  &gt; 1 | import { DocumentNode } from 'graphql\/language\/ast';\r\n      |                              ^\r\n    2 | export interface GraphQLOptions {\r\n    3 |     query: string | DocumentNode;\r\n    4 |     variables?: object;\r\n\r\n ERROR  Build failed with errors.\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! front@0.1.0 build: `vue-cli-service build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the front@0.1.0 build script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\n<\/code><\/pre>\n<h1>\u5904\u7406\u65b9\u6cd5\uff11<\/h1>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u6784\u5efa\uff0c\u4f46\u7ed3\u679c\u4e0d\u6210\u529f\u3002<\/p>\n<pre class=\"post-pre\"><code>npm install @types\/graphql\r\n<\/code><\/pre>\n<h1>\u5e94\u5bf92<\/h1>\n<p>\u5220\u9664@types\u540e\u5b89\u88c5\u5e76\u6784\u5efa\u6210\u529f\u3002<\/p>\n<pre class=\"post-pre\"><code>npm install graphql\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53d1\u751f\u7684\u95ee\u9898 \u5728\u6784\u5efa\u6267\u884c\u65f6\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef 1:30 Could not find a declaration fi [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47959","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757graphql-language-ast\u7684\u58f0\u660e\u6587\u4ef6\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6\" \/>\n<meta property=\"og:description\" content=\"\u53d1\u751f\u7684\u95ee\u9898 \u5728\u6784\u5efa\u6267\u884c\u65f6\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef 1:30 Could not find a declaration fi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757graphql-language-ast\u7684\u58f0\u660e\u6587\u4ef6\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-01T18:14:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T04:27:54+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/\",\"name\":\"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-01T18:14:50+00:00\",\"dateModified\":\"2024-01-15T04:27:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757graphql-language-ast\u7684\u58f0\u660e\u6587\u4ef6\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6","og_description":"\u53d1\u751f\u7684\u95ee\u9898 \u5728\u6784\u5efa\u6267\u884c\u65f6\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef 1:30 Could not find a declaration fi [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757graphql-language-ast\u7684\u58f0\u660e\u6587\u4ef6\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-01T18:14:50+00:00","article_modified_time":"2024-01-15T04:27:54+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/","name":"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-01T18:14:50+00:00","dateModified":"2024-01-15T04:27:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS Amplify\u9519\u8bef\u5904\u7406\u627e\u4e0d\u5230\u6a21\u5757\u201cgraphql\/language\/ast\u201d\u7684\u58f0\u660e\u6587\u4ef6"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/aws-amplify%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e6%89%be%e4%b8%8d%e5%88%b0%e6%a8%a1%e5%9d%97graphql-language-ast%e7%9a%84%e5%a3%b0%e6%98%8e%e6%96%87%e4%bb%b6%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=47959"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47959\/revisions"}],"predecessor-version":[{"id":59463,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47959\/revisions\/59463"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=47959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=47959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=47959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}