what is the error export 'AWSIoTProvider' (imported as 'AWSIoTProvider') was not found in '@aws-amplify/pubsub' even though it has been mentioned in the offcial Amplify documentation how do I import it correct ??
Solution on how to import AWSIoTProvider?

It's not in the package itself, it's in the lib. Should be:
import { AWSIoTProvider } from '@aws-amplify/pubsub/lib/Providers'I think the working statement (just
import { AWSIoTProvider } from '@aws-amplify/pubsub'vsimport { AWSIoTProvider } from '@aws-amplify/pubsub/lib/Providers'changes depening on the aws-amplify package version (I guess the structure was changed), but I am not sure which exact version is the cutoff.