Warning message "DeprecationWarning: Invalid 'main' field in ....." after typing amplify

Viewed 4301

When I write amplify console in react-app, this warning message is coming.

    >amplify console

    (node:2500) [DEP0128] DeprecationWarning: Invalid 'main' field in
'C:\Users\SAMSUNG\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\cloudform\package.json' of
'packages/cloudform/index.js'. Please either fix that or report it to the module author
    (Use `node --trace-deprecation ...` to show where the warning was created)
    ? Which site do you want to open? ...  (Use arrow keys or type to filter)

And then, amplify console is not opening, blank screen. How to fix this?

Runtime env:

"aws-amplify": "^4.3.16",     //latest
"aws-amplify-react-native": "^6.0.3",    //latest
node: v16.14.0     //latest
npm: 8.3.1         //latest
1 Answers
Related