Unable to parse aws-exports.js. Has this file been modified #13446
Labels
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
platform-pull
Issues related to `amplify pull`
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
16.13.2
Amplify CLI Version
12.8.2
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
I firstly hosted my website using Amplify manually before I install the Amplify-cli on my backend using the Visual Studio terminal
Describe the bug
Initially when I run "npm run serve" on my terminal I get this warnings:
in ./src/components/AppSignin.vue?vue&type=script&lang=js
export 'default' (imported as 'Auth') was not found in '@aws-amplify/auth' (possible exports: AuthError, autoSignIn, confirmResetPassword, confirmSignIn, confirmSignUp, confirmUserAttribute, decodeJWT, deleteUser, deleteUserAttributes, fetchAuthSession, fetchDevices, fetchMFAPreference, fetchUserAttributes, forgetDevice, getCurrentUser, rememberDevice, resendSignUpCode, resetPassword, sendUserAttributeVerificationCode, setUpTOTP, signIn, signInWithRedirect, signOut, signUp, updateMFAPreference, updatePassword, updateUserAttribute, updateUserAttributes, verifyTOTPSetup)
warning in ./src/components/AppSignup.vue?vue&type=script&lang=js
export 'Auth' (imported as 'Auth') was not found in '@aws-amplify/auth' (possible exports: AuthError, autoSignIn, confirmResetPassword, confirmSignIn, confirmSignUp, confirmUserAttribute, decodeJWT, deleteUser, deleteUserAttributes, fetchAuthSession, fetchDevices, fetchMFAPreference, fetchUserAttributes, forgetDevice, getCurrentUser, rememberDevice, resendSignUpCode, resetPassword, sendUserAttributeVerificationCode, setUpTOTP, signIn, signInWithRedirect, signOut, signUp, updateMFAPreference, updatePassword, updateUserAttribute, updateUserAttributes, verifyTOTPSetup)
App running at:
Note that the development build is not optimized.
To create a production build, run npm run build.
Then I proceeded to run "amplify pull --appId d1jj85s7k5o6br --envName dev"
then I got this:
Pre-pull status:
┌──────────┬───────────────────┬───────────┬───────────────────┐
│ Category │ Resource name │ Operation │ Provider plugin │
├──────────┼───────────────────┼───────────┼───────────────────┤
│ Auth │ flickgridce0c352e │ No Change │ awscloudformation │
└──────────┴───────────────────┴───────────┴───────────────────┘
✔ Successfully pulled backend environment dev from the cloud.
✖ There was an error initializing your environment.
🛑 Unable to parse aws-exports.js. Has this file been modified?
Expected behavior
I want to authenticate users on my web application using AWS Cognito. I have created a form for Signup and Signin and would love to use the AWS Cognito to authenticate users after signing up. Authenticated users would be directed to another page in the website.
Reproduction steps
npm run serve
amplify pull --appId d1jj85s7k5o6br --envName dev
Project Identifier
Project Identifier: 1ffc49228437ff9bed7582f86c66138c
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: