amplify-js: Unable to resolve module `./src/aws-exports` in demo app

I am reporting a bug in the aws react-native starter demo app: https://github.com/aws-samples/aws-mobile-react-native-starter

Following all steps here verbatim in terms of install and config and then doing npm run ios.

App builds and then I get the ios simulator with an iPhone 6 open and a confirmation that the build succeeded.

However then when the app starts I get that typical red reactNative error screen saying that the app was could not resolve /Users/myCompName/Documents/awsTestApp/awsChat/src/aws-exports as a folder: it did not contain a package, nor an index file

screen shot 2018-04-16 at 2 27 03 pm screen shot 2018-04-16 at 2 27 06 pm

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than AWS Amplify.

What is the expected behavior?

Not sure but I assumed the demo app would just work???

Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Same here. aws-exports.js does not appear. Using “aws-amplify”: “^1.0.6”, “aws-amplify-react-native”: “^1.0.6”,

@Asautali @scrapex It looks like there was a change which went in about a month ago. aws-exports.js only gets generated after syncing to cloud. If you run ‘amplify publish’ it should pop into existence. 😃