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

VUE3+VITE 使用oss打包时报错 #1263

Open
Mlegbder opened this issue Nov 28, 2023 · 2 comments
Open

VUE3+VITE 使用oss打包时报错 #1263

Mlegbder opened this issue Nov 28, 2023 · 2 comments

Comments

@Mlegbder
Copy link

run dev 一切正常, run build时就报错了, 一直没找到原因

node 是v18.16.0 , vite是4.5.0

112233

@LewisLen
Copy link

LewisLen commented Dec 11, 2023

同样遇到了 "ali-oss": "^6.18.1" "vue": "^3.3.4" "vite": "^4.4.5"

已解决
使用cdn引入的方式即可解决,这是vite编译机制问题
在index.html中引入

<script src="./aliyun-oss-sdk-6.18.1.min.js"></script>

@Hao1617
Copy link

Hao1617 commented Oct 26, 2024

如何解决 我也遇到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants