发生的错误 de
ERROR ERROR in $HOME/management-app/node_modules/@aws-amplify/api-graphql/lib-esm/types/index.d.ts(1,30): nuxt:typescript 16:46:17
1:30 Could not find a declaration file for module 'graphql/language/ast'. '/Users/tai-hatake/workspace/wanderer/management-app/node_modules/graphql/language/ast.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/language/ast';`
> 1 | import { DocumentNode } from 'graphql/language/ast';
| ^
2 | export interface GraphQLOptions {
3 | query: string | DocumentNode;
4 | variables?: object;
解决方案
npm install @types/graphql@14.0.0