• home > webfront > AppDev > taro >

    Taro开发小程序h5调试,网络请求出错汇总

    Author:zhoulujun Date:

    如下面的情况,小程序里面调试是正常的,h5调试,页面出不来。情况和怪异。其实就是跨域问题和promise reject 没有处理好而已。TypeErrorFailed to fetch Call Stack、Error @pmmmwh react-refresh-webpack-plugin

    如下面的情况,小程序里面调试是正常的,h5调试,页面出不来。情况和怪异。其实就是跨域问题和promise reject 没有处理好而已。


    出错情况1:

    Error @pmmmwh/react-refresh-webpack-plugin/client/utils/error Event Handlers.js:46:21


    出错情况2:

    TypeError

    Failed to fetch

    Call Stack

     _request

      node_modules/@tarojs/taro-h5/src/api/request/index.js:111:10

     taroInterceptor

      node_modules/@tarojs/taro-h5/src/api/request/index.js:161:10

     Chain.proceed

      node_modules/@tarojs/api/dist/index.esm.js:202:15

     Link.request

      node_modules/@tarojs/api/dist/index.esm.js:241:25

     _callee$

      src/utils/Http.ts:251:88

     tryCatch

      node_modules/regenerator-runtime/runtime.js:62:40

     Generator.invoke [as _invoke]

      node_modules/regenerator-runtime/runtime.js:296:22

     Generator.prototype. [as next]

      node_modules/regenerator-runtime/runtime.js:114:21

     asyncGeneratorStep

      node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:5:24

     _next

      node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:27:9

    × Close



    转载本站文章《Taro开发小程序h5调试,网络请求出错汇总》,
    请注明出处:https://www.zhoulujun.cn/html/webfront/AppDev/taro/8708.html