Skip to content

Cannot find module '@aws-amplify/api' from 'Connect.js' #1859

@LoganArnett

Description

@LoganArnett

Describe the bug
Getting this error when integrating aws-amplify-react GraphQL client into my application:
Cannot find module '@aws-amplify/api' from 'Connect.js'
Can't resolve '@aws-amplify/api' in '/node_modules/aws-amplify-react/dist/API/GraphQL'

To Reproduce
Steps to reproduce the behavior:

  1. Init a create-react-app
  2. Use the GraphQL client from aws-amplify and aws-amplify-react
  3. Run npm start
  4. See error

Expected behavior
Should work and allow for me to send queries and mutations

Desktop (please complete the following information):

  • OS: OSX Mojave 10.14
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraphQLRelated to GraphQL API issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions