Anyone got the AWS SDK to work in the client-side of Meteor

With the coming dynamic imports in 1.5 it’d be great to use the ASK SDK client-side through npm and only take the hit of loading it when it’s needed. But when trying to do so I get: TypeError: stream.setTimeout is not a function.

If I switch to dumping the AWS browser SDK js file into my client directory then everything works. It seems that the AWS SDK thinks it’s in a Node environment, rather than the browser.

Has anyone got the AWS SDK working as a package client side?

Any hints as to how to nudge the SDK in the right direction and get it to use it’s browser functions?

The issue turns out to be this missing feature in Meteor.

I managed in the case of the AWS SDK get around it. See this comment for details.

1 Like