收藏
回答

rmdirSync:fail Cannot assign to read only property

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug rmdirSync 微信安卓客户端 7.0.10 2.9.3

rmdirSync:fail Cannot assign to read only property 'stackTraceLimit' of function 'function Error() { [native code] }';at api request success callback function

Error: rmdirSync:fail Cannot assign to read only property 'stackTraceLimit' of function 'function Error() { [native code] }'

at rmdirSync (https://lib/WASubContext.js:1:687302)

at Object.e.<computed> (https://lib/WASubContext.js:1:691192)

at Object.p.<computed> [as rmdirSync] (https://lib/WASubContext.js:1:1148486)

at Object.m [as remove] (https://miniprogram:///utils/work-stage-cache.js:269:12)

at _e.saveInvenroryAndDeleteFile (https://miniprogram:///pages/index/truck-tyre-inventory/truck-tyre-inventory.js:1010:31)

at success (https://miniprogram:///pages/index/truck-tyre-inventory/truck-tyre-inventory.js:437:14)

at success (https://miniprogram:///utils/request.js:72:11)

at Object.o.<computed> (https://lib/WASubContext.js:1:1145922)

at Function.<anonymous> (https://lib/WASubContext.js:1:434537)

at C (https://lib/WASubContext.js:1:390000)

回答关注问题邀请回答
收藏

2 个回答

  • 是小白啊
    是小白啊
    2020-04-03

    麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2020-04-03
    有用
    回复 5
    • 6s
      6s
      2020-04-03
      测试代码也不复现,就不提供了。线上只有客户这台机器偶尔出问题
      2020-04-03
      回复
    • 6s
      6s
      2020-04-07
      还是出现这个问题
      2020-04-07
      回复
    • 6s
      6s
      2020-04-07
      renameSync:fail Cannot assign to read only property 'stackTraceLimit' of function 'function Error() { [native code] }';at pages/index/truck-tyre-service-action/truck-tyre-service-action onUnload function;at api mkdir complete callback function
      Error: renameSync:fail Cannot assign to read only property 'stackTraceLimit' of function 'function Error() { [native code] }'
      at renameSync (https://lib/WASubContext.js:1:689943)
      at Object.e.<computed> (https://lib/WASubContext.js:1:691192)
      at Object.p.<computed> [as renameSync] (https://lib/WASubContext.js:1:1148486)
      at https://miniprogram:///utils/work-stage-cache.js:214:39
      at e (https://miniprogram:///utils/work-stage-cache.js:207:28)
      at e (https://miniprogram:///utils/work-stage-cache.js:204:7)
      at https://miniprogram:///utils/work-stage-cache.js:225:9
      at e (https://miniprogram:///utils/work-stage-cache.js:207:28)
      2020-04-07
      回复
    • 是小白啊
      是小白啊
      2020-04-07回复6s
      微信版本更新试下呢?
      2020-04-07
      回复
    • 6s
      6s
      2020-04-07回复是小白啊
      就是7.0.10的
      2020-04-07
      回复
  • 6s
    6s
    2020-04-03

    {"locationEnabled":true,"screenWidth":353,"benchmarkLevel":8,"screenHeight":706,"windowHeight":706,"bluetoothEnabled":false,"language":"zh_CN","microphoneAuthorized":true,"version":"7.0.10","cameraAuthorized":true,"system":"Android 9","fontSizeSetting":16,"locationAuthorized":true,"pixelRatio":3.0625,"notificationAuthorized":true,"model":"SKR-A0","statusBarHeight":36,"deviceOrientation":"portrait","wifiEnabled":true,"safeArea":{"width":353,"right":353,"top":0,"left":0,"bottom":706,"height":706},"brand":"blackshark","windowWidth":353,"screenTop":0,"platform":"android","SDKVersion":"2.9.3","devicePixelRatio":3.0625}

    2020-04-03
    有用
    回复
登录 后发表内容
问题标签