-
Notifications
You must be signed in to change notification settings - Fork 576
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
从5.1开始build之后出现 Uncaught TypeError: Cannot create property 'createCredentials' on string '0' #473
Comments
@jiyarong 请问你的build是指使用create-react-app脚手架工具构建后运行npm run build吗? |
@luozhang002 build不报错,部署后报错 |
最新的 ali-oss@5.3.0,通过 @luozhang002 问题还没有解决,请 reopen 这个 issue |
Browser Version or Node Version: chrome 最新, node 8.9.3 部署后也报了: Cannot create property 'createCredentials' on string '0' |
本地并未重现错误,本地采用了create-react-app脚手架,在APP.js代码里加入简单的OSS上传逻辑。我代码如下: server -s build 我本地并未浮现。所以希望能提供具体的步骤和截图,我这边也方便统一修下。而且 ·Cannot create property 'createCredentials' on string '0' 这个错误感觉跟构建工具有关系吧 |
node v10.16 |
"ali-oss": "^6.1.1", var client =new OSS({ function OSSDown (filename) { |
@jiyarong 请打开问题,目前也出现了这个问题,本地开发没有问题,放到线上就出问题 |
同问题 |
@luozhang002 是build后才出现 人家很明确指出了 然后你直接把issue关闭,不好吧。。 |
OSS.Wrapper 在5.x 以上版本已经废弃掉了。 |
我们现在也遇到同样问题。本地正常,线上部署后出错 |
reopen吧 |
最好能给一个线上地址,我能调试下 |
各位使用6.10.0 版本试下。之前因为压缩工具导致的问题 |
* feat: add async task (#818) * test: replace await loop with Promise.all (#810) Co-authored-by: 饶培泽 <peizerao@gmail.com> * feat: add typescript support (#814) * feat: add ts * feat: add cjs * refactor: checkBucketName * refactor: common/utils with ts * refactor: createRequest with ts * feat: add es2017 Co-authored-by: weiyie <912881342@qq.com> * chore: add nyc config * feat: asyncFetch (#817) Co-authored-by: 冷若霜寒 <912881342@qq.com> * chore: update tsc cli * fix: WebFileReadStream no throw error when filereader onerror (#824) * fix(browser): put unhandle non-RequestTimeTooSkewed error (#825) * chore(deps-dev): bump standard-version from 4.4.0 to 8.0.1 (#831) Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 4.4.0 to 8.0.1. - [Release notes](https://github.com/conventional-changelog/standard-version/releases) - [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md) - [Commits](conventional-changelog/standard-version@v4.4.0...v8.0.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: crypto each exports, close #473 (#830) Co-authored-by: 饶培泽 <peizerao@gmail.com> * chore(release): 6.10.0 * chore: bump version * chore: update README.md (#833) Update description information of `getBucketVersions` * fix: throw error when put path is not file (#838) * fix: Support empty prefix in putBucketLifecycle (#835) {prefix: ""} is supported for rule that applied to whole bucket. * feat: multipartUpload support Node.JS Buffer (#832) Support performing .multipartUpload(name {string}, file {Buffer}); Co-authored-by: 饶培泽 <peizerao@gmail.com> * fix: IP does not support third-level domain (#834) * refactor: is.buffer (#839) * feat: putBucket support set acl and dataRedundancyType (#837) * docs: add link for more info code (#844) * feat: support non-english http header (#842) * feat: support non-english http header * test: Add test cases for non-English request header information * feat: add headerEncoding option * feat: add encoder types * fix: remove object spread syntax Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> * docs: add partSize of multipart (#845) * fix: sts SignatureDoesNotMatch (#847) * fix: _getPartSize (#846) * chore: obj2xml support filter null and undefined value (#848) * fix: multipartupload task unhandle abort error (#849) * fix(browser): checkpoint.file (#795) * fix: copyObject set headers bug (#850) * feat: support proxy (#858) * fix(browser): presets dont support ie10 (#861) * merge branch master into develop * feat: inventory (#860) * feat: worm (#857) * feat: auto set stsConfig when sts expires (#856) * feat: auto set stsConfig when sts expires * test: add auto set sts test case * fix: host err which old image client request (#869) * Develop (#868) * feat: support non-english http header (#842) * feat: support non-english http header * test: Add test cases for non-English request header information * feat: add headerEncoding option * feat: add encoder types * fix: remove object spread syntax Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> * fix(browser): checkpoint.file (#795) * merge branch master into develop * feat: inventory (#860) * feat: worm (#857) * feat: auto set stsConfig when sts expires (#856) * feat: auto set stsConfig when sts expires * test: add auto set sts test case * fix: host err which old image client request (#869) Co-authored-by: beajer <919060679@qq.com> Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> Co-authored-by: 冷若霜寒 <912881342@qq.com> * chore(release): 6.11.0 * bump version 6.11.0 * chore: bump version 6.11.1 * fix(browser): delete set header "User-Agent" (#873) * chore(release): 6.11.2 * chore: bump version 6.11.2 * Update README.md * fix: use put insteadof putStream when calling multipartUpload to process small file in browser (#890) * fix(browser):setTimeout has minimum time interval when tab is inactive (#887) * fix: replace process for browser * fix: use browserify options to replace process.js (#886) Co-authored-by: beajer <919060679@qq.com> * fix: merge conflict #726 (#892) * fix: merge conflict * test: ResponseTimeoutError * fix: cannot use ali-oss in webworker (#823) * feat: retry when net err or timeout (#876) * feat: retry when net err or timeout * test: should not retry when params.stream is not readable * test: retry in browser Co-authored-by: beajer <919060679@qq.com> * fix: getBucketVersions should use NextKeyMarker property (#896) * fix: getBucketVersions should use NextKeyMarker property * docs: getBucketVersions should use NextKeyMarker property * docs: Compatible wrong property * Fix multipart upload (#895) * fix: multipartUpload zancun * fix: test case * test: multipartUploadStreams * test: cov * fix: error method * fix: test and destory(err) when cancel Co-authored-by: weiyie <912881342@qq.com> * feat: listObjectsV2 (#888) * feat: listObjectsV2 * style: trailingComma none * fix: check region and endpoint for ssrf (#874) * fix: check region and endpoint for ssrf * fix: retry in browser Co-authored-by: beajer <919060679@qq.com> * use shime/url replace node-url to fix split regex bug * fix: browser test and listV2 docs (#901) * chore(release): 6.12.0 * chore: build 6.12.0 * fix: conflict, test case * style: remove duplicated code * fix: the continuation-token params in listV2 (#906) * fix: the continuation-token params in listV2 * docs: update headers.Expires * docs: revise `start-after` in listV2 (#907) * fix: codecov * fix: should use encodeURIComponent insteadof encodeURI in copy api * fix: use lowercase header when calculating signatures * fix: deepCopy not working for larges Buffers and test case of Image Process * feat: prevent caching for the get api Co-authored-by: 饶培泽 <peizerao@gmail.com> Co-authored-by: 冷若霜寒 <912881342@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: YUPENG12138 <30425185+YUPENG12138@users.noreply.github.com> Co-authored-by: Alois Klink <alois.klink@gmail.com> Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>
在create-react-app中使用
build完之后,出现
Uncaught TypeError: Cannot create property 'createCredentials' on string '0'
The text was updated successfully, but these errors were encountered: