Amplify-js: Module not found: Can't resolve 'react-native'

Created on 5 Mar 2019  路  5Comments  路  Source: aws-amplify/amplify-js

Since upgrading to @aws-amplify/auth from 1.2.15 to 1.2.17, I'm getting the following error from eslint:

./node_modules/@aws-amplify/auth/lib/Auth.js
Module not found: Can't resolve 'react-native' in '/opt/atlassian/pipelines/agent/build/node_modules/@aws-amplify/auth/lib'
Build bug

Most helpful comment

I can confirm that the issue is fixed now.
Thanks!

All 5 comments

I'm getting this too.
Maybe it is related to this commit that adds react-native as a peer dependency?
https://github.com/aws-amplify/amplify-js/commit/ac4d232a8ada0fd4f2e19c2e7196a8937dc63e0e

Getting this as well. Worked yesterday.

I'm getting this too .. and, I'm trying to create an ionic app .. not react.

[ng] WARNING in ./node_modules/@aws-amplify/auth/lib/Auth.js [ng] Module not found: Error: Can't resolve 'react-native' in node_modules\@aws-amplify\auth\lib'

Hi All, we are looking into this issue. Thanks for reporting!

I can confirm that the issue is fixed now.
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ddemoll picture ddemoll  路  3Comments

leantide picture leantide  路  3Comments

rygo6 picture rygo6  路  3Comments

ldgarcia picture ldgarcia  路  3Comments

callmekatootie picture callmekatootie  路  3Comments