Skip to content

Instantly share code, notes, and snippets.

@jaunesarmiento
Created August 1, 2020 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaunesarmiento/4b842148e2382d82abdd1500fa0d5514 to your computer and use it in GitHub Desktop.
Save jaunesarmiento/4b842148e2382d82abdd1500fa0d5514 to your computer and use it in GitHub Desktop.
import '@aws-amplify/pubsub';
import { onCreateMessage } from '../graphql/subscriptions';
@mimoricom
Copy link

import { onCreateMessage } from '../graphql/subscriptions';
shoud be
import { onCreateMessage } from './graphql/subscriptions';

otherwise
shows following message

./src/App.js
Module not found: You attempted to import ../graphql/subscriptions which falls
outside of the project src/ directory. Relative imports outside of src/ are not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment