-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export 'default' (imported as 'Amplify') was not found in 'aws-amplify' #10827
Comments
Get the same error when simply using the below: Amplify.configure(config) |
Hi @guychevelle Amplify as a default export is deprecated and you would need to import it as a named export import { Amplify } from 'aws-amplify' Could you try this? |
awesome! that works. |
This tutorial should be updated: |
I'm still getting this error applying : import { Amplify } from 'aws-amplify' ERROR in ./src/index.js 12:0-14 Full code import logo from './logo.svg'; import { Amplify } from 'aws-amplify' function App({ signOut }) { ); } export default withAuthenticator(App); |
import Amplify from 'aws-amplify'; Amplify.configure(awsconfig); import logo from './logo.svg'; import { Amplify } from 'aws-amplify' function App({ signOut }) { ); } export default withAuthenticator(App); |
Hi @akbarm, could you open a new issue for this and also share your Open new issue - https://github.com/aws-amplify/amplify-js/issues/new/choose |
export 'API' (imported as 'API') was not found in 'aws-amplify' (possible exports: Amplify) what about this issue?? |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
DataStore
Amplify Categories
No response
Environment information
// Put your logs below this line
Compiled with problems:
ERROR in ./src/index.js 22:0-17
export 'default' (imported as 'Amplify') was not found in 'aws-amplify' (possible exports: API, APIClass, AWSCloudWatchProvider, AWSKinesisFirehoseProvider, AWSKinesisProvider, AWSPinpointProvider, AmazonPersonalizeProvider, Amplify, Analytics, Auth, AuthModeStrategyType, Cache, ClientDevice, DataStore, Geo, Hub, I18n, Interactions, Logger, Notifications, Predicates, Predictions, PubSub, ServiceWorker, Signer, SortDirection, Storage, StorageClass, XR, graphqlOperation, syncExpression, withSSRContext)
The text was updated successfully, but these errors were encountered: