-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
my aws-sdk project dont work in VUE3+Vite #4638
Comments
Hi @jy852095639 - thanks for reaching out. Can you share your SDK code example that would give us more insight into the issue you're facing? Also it seems like you're using JavaScript SDK v2. If confirmed, I'll transfer this to our v2 repo. Best, |
import AWS from 'aws-sdk' |
@jy852095639 in vite.config.ts, add this config maybe solve this problem export default defineConfig({ |
@jy852095639 - appreciate for sharing the code. I don't see anything abnormal with the code. Can you try updating Vite.config mentioned by @Tookfreshman (thanks for chiming in)? |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
I tried this, and the issue of "could not read properties of undefined (reading 'prototype')" is fixed. Found this from the index.d.ts file, Should this be a concern ? |
Works for me! |
Thank u bro!!! it's works for me! |
Describe the issue
node -v
17.0.0
vite
5.0.11
aws-sdk
2.1619.0
code:
import AWS from 'aws-sdk'
console.log(AWS)
When I introduce and use AWS, I will report an error
Links
NO
The text was updated successfully, but these errors were encountered: