Comments (20)
我们使用browserify,参考:https://github.com/ali-sdk/ali-oss#browser-usage
from ali-oss.
webpack我没有用过,可能是会有一些问题需要解决。
script标签引入有什么问题吗?
from ali-oss.
那只能去研究一下webpack了
from ali-oss.
不分开是不想重复,参考aws的js sdk。你的问题是和webpack一起使用的问题,而不是分不分开的问题。
from ali-oss.
浏览器端不会使用fs,你报错只是你的用法不对。
如果webpack是很多用户的诉求,我们当然会提供支持。
from ali-oss.
你可以参考一下issue的平均解决时间:)
from ali-oss.
什么叫“直接ie10+”?
from ali-oss.
我们项目中也是使用webpack进行打包的,遇到的问题和上面的同学遇到的差不多,ossjavascript包能否在webapck下运行,如果可以的话是否可以出个脚手架工程?
from ali-oss.
补充一下,我们使用react+webpack
from ali-oss.
同问啊。
from ali-oss.
@tolerious 上传可以参考文档那个直传的例子,没必要非要用 SDK
from ali-oss.
@suhaotian 是的,通过标签直接传是可以的, 现在我的场景是发起请求的部分在我的Vue组件内,我的Vue组件是通过Webpack打包的,直接用<script>
标签引入,我在Vue的组件内无法使用的呢。
from ali-oss.
可以通过 script 全局引入,虽然有点丑
from ali-oss.
@suhaotian 通过script
标签引入的,在Vue单文件组件中可以使用?
我在Vue单文件组件中使用报错的咯。
from ali-oss.
const plupload = plupload
from ali-oss.
啥?
from ali-oss.
我加你 qq 吧
from ali-oss.
@suhaotian 390549824
from ali-oss.
@tolerious 报 undefined 的错?
from ali-oss.
@tolerious 如果是报 undefined 你声明下,const xx = xx
from ali-oss.
Related Issues (20)
- 身为一个开发者,求稳是美德。 6.17版 HOT 3
- 依赖包中vm2存在严重的沙箱逃逸漏洞,是否考虑升级版本修复? HOT 3
- jest测试ali-oss报错:SyntaxError: Cannot use import statement outside a module HOT 3
- import 报错,报未定义 HOT 1
- list方法为什么只能返回1000限制?几万个文件怎么办? HOT 3
- 当我使用nuxt3 来使用ali-oss 的上传功能,在build的时候发生这个问题 HOT 1
- cancel如何暂停某个文件的上传 HOT 1
- Node 最新版本 enableProxy 导致找不到 x-oss-request-id HOT 3
- 6.18.0 更新日志在哪里?是 npm 账号被盗用了么? HOT 3
- window is not defined in webworker HOT 2
- Is there a way to multipart upload with signedUrl?
- Object.put 指定 file 为路径时响应没有 url 吗
- Bug: Nuxt3+ts项目 打包报错 HOT 8
- 上传失败错误-1 HOT 2
- 在vite中使用出现开发环境与生产环境表现不一致的问题 HOT 1
- VUE3+VITE 使用oss打包时报错 HOT 1
- ali-oss 不支持在 cloudflare workers 中使用 HOT 2
- 使用 6.18.1 版本在 next.js 框架下以及 nodejs v18.14.2 环境中提示依赖 proxy-agent implementation 找不到 HOT 1
- 如何实现大文件断点续传下载 HOT 1
- vite使用ali-oss时打包出错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ali-oss.