-
Notifications
You must be signed in to change notification settings - Fork 74
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
Conversion of type 'ProcessEnv' to type 'LambdaProvidedEnvVars & AmplifyBackendEnvVars' may be a mistake #1854
Comments
Hey @vinothj-aa, could you update the exclude with the following and retry
|
Hi @ykethan, thank you for your response.
Is it expected that there must be 2 tsconfig.json files? |
@vinothj-aa yes your project expected have 2 |
As per your suggestion, I updated ./tsconfig.json file with the following code
It detects the file changed and it ran successfully but when I exit the sandbox and start it again (npx command), I get the same error:
|
@vinothj-aa remove |
Oh! Ok. I changed it to:
I get the same error. I'm suspecting that something else could be wrong here. |
Do you think that I should delete the entire sandbox environment (again) and try one more time? |
@vinothj-aa interesting, does this still occur in sandbox? |
Yes, I tried it now but still the same error. |
@vinothj-aa would you be open for a quick chat to dive into the project. I am available on discord, my handle is |
Thank you for hopping on a call. Marking as bug for further investigation. |
@vinothj-aa on a bit of investigation and diving into the project. Noticed the |
Thanks for your response and I apologise for the delayed reply. I checked it and the resolution shared by you fixed the issue as well. But the error is misleading and pointing to a different file. |
An update:
Looks like the inclusion of "plugin:@aws-appsync/base" in .eslintrc file is causing this issue. I know it is not required to include it but will I miss anything critical during the development phase if I remove it? |
Environment information
Description
I'm running to an issue in personal cloud sandbox environment with the error:
This is leading to build failures in Amplify as well.
Since the file that throws this error is an auto generated file by Amplify, I'm not sure how to fix this issue!
Steps tried by me:
Additional Details:
I couldn't find help in the Amplify documentation and online as well. I would really appreciate it if someone could help me.
The text was updated successfully, but these errors were encountered: