I have this error I don't know why?

Might be late but i came across the same error, but i fixed mine by using a different library for the apploading feature(that is using the import statement) For more information regarding the library