Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-sdk broken: Cannot read property 'prototype' of undefined #6519

Closed
mischnic opened this issue Jun 27, 2021 · 0 comments · Fixed by #6572
Closed

aws-sdk broken: Cannot read property 'prototype' of undefined #6519

mischnic opened this issue Jun 27, 2021 · 0 comments · Fixed by #6572

Comments

@mischnic
Copy link
Member

mischnic commented Jun 27, 2021

🐛 bug report

Bundling aws-sdk@2.935.0 with scope hoisting doesn't work

😯 Current Behavior

Generated bundle throws:

$cck4n.util.update($cck4n.STS.prototype, {
                              ^
TypeError: Cannot read property 'prototype' of undefined

💁 Possible Solution

Some kind of circular dependency? Probably related to wrapping

💻 Code Sample

import * as AWS from 'aws-sdk';
console.log(AWS);

🌍 Your Environment

Software Version(s)
Parcel 85ee209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant