How to fix Cannot find module './aws-export' or its corresponding type declarations.ts (2307)

Viewed 153

I am trying to integrate my project with aws (amazon web service ) After I initialize aws globally I decided to create a project call ELab by using the

following command

amplify init

and also using the following command to configure it

npm install aws-amplify @aws-amplify/ui-react 

then I add this to my App.tsx file

import Amplify from 'aws-amplify'
import config from './aws-exports' // error the /aws-exports.js was not generated
Amplify.configure(config)

After all those configuration aws fail to generate the aws-exports.js configuration file

is there any to resolve this issues thank you in advance

1 Answers
Related