LoginSignup
0
0

reactで`npm start`時に以下のエラーが出る(export 'default' (imported as 'Amplify') was not found in 'aws-amplify')

Posted at

以下を試している際に

https://aws.amazon.com/jp/blogs/mobile/add-maps-to-your-app-in-3-steps-with-aws-amplify-geo/

reactでnpm start時に以下のエラーが出る(export 'default' (imported as 'Amplify') was not found in 'aws-amplify')

export 'default' (imported as 'Amplify') was not found in 'aws-amplify'

以下のように{}をつけることで解決した

https://github.com/aws-amplify/amplify-js/issues/10827#issuecomment-1366948142
import { Amplify } from 'aws-amplify'

import { Amplify } from 'aws-amplify';

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0