小编Ruw*_*ani的帖子

包含`声明模块'graphql/error/GraphQLError'的声明(.d.ts)文件;在 angular 项目的 index.d.ts 中

我在一个角度项目中使用放大。当我运行命令 ng serve 时出现此错误。

Error: node_modules/@aws-amplify/api-graphql/lib-esm/types/index.d.ts:1:30 - error TS7016: Could not find a declaration file for module 'graphql/error/GraphQLError'. 'C:/Users/Ruwani Indrachapa/Documents/profileApp/profileApp1/node_modules/graphql/error/GraphQLError.js' implicitly has an 'any' type.
 Try `npm install @types/graphql` if it exists or add a new declaration (.d.ts) file containing `declare module 'graphql/error/GraphQLError';`

1 import { GraphQLError } from 'graphql/error/GraphQLError';
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@aws-amplify/api-graphql/lib-esm/types/index.d.ts:2:30 - error TS7016: Could not find a declaration file for module 'graphql/language/ast'. 'C:/Users/Ruwani Indrachapa/Documents/profileApp/profileApp1/node_modules/graphql/language/ast.js' implicitly has an 'any' type.
 Try `npm install @types/graphql` if it exists or add …
Run Code Online (Sandbox Code Playgroud)

javascript graphql angular aws-amplify

15
推荐指数
3
解决办法
3253
查看次数

使用--dev标志时出现错误"没有这样的选项"

ignite-ir-boilerplate无法安装.它是一个有效的NPM模块吗?

Command failed: yarn add ignite-ir-boilerplate --dev
Usage: yarn [options]

yarn: error: no such option: --dev
Run Code Online (Sandbox Code Playgroud)

yarnpkg

4
推荐指数
1
解决办法
4480
查看次数

标签 统计

angular ×1

aws-amplify ×1

graphql ×1

javascript ×1

yarnpkg ×1