gpt4 book ai didi

typescript - 错误 : Cannot find module 'graphql/polyfills/objectValues'

转载 作者:行者123 更新时间:2023-12-05 01:29:46 24 4
gpt4 key购买 nike

向我的 Gatsby 和 Typescript 应用程序抛出错误消息。“gatsby develop”因此无法正常工作。

这是我的网络应用依赖项,请帮忙。!!

"dependencies": {
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"babel-eslint": "^10.1.0",
"gatsby": "^3.5.0",
"gatsby-cli": "^3.5.0",
"gatsby-plugin-emotion": "^6.5.0",
"gatsby-plugin-image": "^1.4.0",
"gatsby-plugin-offline": "^4.4.0",
"gatsby-plugin-react-helmet": "^4.4.0",
"gatsby-plugin-sharp": "^3.4.1",
"gatsby-plugin-typescript": "^3.5.0",
"gatsby-remark-images": "^5.2.0",
"gatsby-remark-prismjs": "^5.2.0",
"gatsby-source-filesystem": "^3.4.0",
"gatsby-transformer-remark": "^4.2.0",
"gatsby-transformer-sharp": "^3.4.0",
"graphql": "^0.12.3",
"graphql-tag": "^2.12.4",
"init": "^0.1.2",
"peer-graphql": "0.0.3",
"prismjs": "^1.23.0",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0",
"tsc": "^2.0.3",
"typescript": "^4.2.4"
}

最佳答案

我刚刚遇到了同样的问题,它最终成为一个对等依赖问题——特别是对于 graphql 包。安装 15.x 版为我解决了这个问题。

npm install graphql@^15.0.0

关于typescript - 错误 : Cannot find module 'graphql/polyfills/objectValues' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67527452/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com