简体   繁体   English

无法读取未定义的属性“createKeywordTypeNode”

[英]Cannot read property 'createKeywordTypeNode' of undefined

I have a react typescript application which uses GraphQl.我有一个使用 GraphQl 的反应 typescript 应用程序。 Everything was working fine till yesterday But now I am receiving a weird bug while executing the command "yarn run relay && react-scripts start"直到昨天一切正常但现在我在执行命令"yarn run relay && react-scripts start"时收到一个奇怪的错误

"relay": "relay-compiler --src./src --schema./src/modules/open-cti/schema.graphql --language=typescript --extensions=ts --extensions=tsx",

Can anyone help how to troubleshoot this one I am using nodejs 12.16.1 and Typescript version ^3.8.3谁能帮我解决这个问题,我正在使用nodejs 12.16.1和 Typescript 版本^3.8.3

在此处输入图像描述

It was because they deprecated the typescript API usages and merged it to the minor version.这是因为他们弃用了 typescript API 用法并将其合并到次要版本。 A patch will be available soon.很快就会有一个补丁。 In the meantime you could pin down the previous version.与此同时,您可以确定以前的版本。 or upgrade your project to typescript 4. https://github.com/relay-tools/relay-compiler-language-typescript/issues/272或将您的项目升级到 typescript 4. https://github.com/relay-tools/relay-compiler-language-typescript/issues/272

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM