8 steps to building your own serverless GraphQL API using AWS Amplify
Nader Dabit

awesome stuff thanks Nadir.

for some reason I’m seeing this error when trying to run the above project as React won’t allow a reference to the schema.graphql file.

Here’s the import in App.js:

import { CreateBlog } from “../amplify/backend/api/blogapp/schema.graphql”;

Here’s the error that React is throwing:

Module not found: You attempted to import ../amplify/backend/api/blogapp/schema.graphql which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project’s node_modules/.

Like what you read? Give Angus Johnston a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.