why do I get this error when I try to run amplify push or pull often?

Viewed 11

this the error

const internalModuleReadJSON = function (f) { return require('fs').internalModuleReadJSON(f); };
                                                               ^

TypeError: require(...).internalModuleReadJSON is not a function

this error fixes itself randomly, sometimes it works, sometimes not,

sometimes I have to delete my project and then restart my pc but sometimes it works sometimes it doesn't

how can I fix this error?

0 Answers
Related