简体   繁体   中英

Cannot read property 'createKeywordTypeNode' of undefined

I have a react typescript application which uses GraphQl. Everything was working fine till yesterday But now I am receiving a weird bug while executing the command "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

在此处输入图像描述

It was because they deprecated the typescript API usages and merged it to the minor version. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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