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

h5页面在安卓版本4.4.4下报错无法访问 #4281

Closed
shekang opened this issue Aug 24, 2019 · 4 comments
Closed

h5页面在安卓版本4.4.4下报错无法访问 #4281

shekang opened this issue Aug 24, 2019 · 4 comments
Assignees

Comments

@shekang
Copy link

shekang commented Aug 24, 2019

问题描述
h5开发环境下,用安卓自带浏览器(安卓版本:4.4.4)访问,报错Uncaught ReferenceError: _typeof is not defined, QQ浏览器X5内核可以正常访问
项目依赖

 "dependencies": {
    "@tarojs/async-await": "^1.3.13",
    "@tarojs/components": "1.3.12",
    "@tarojs/router": "1.3.12",
    "@tarojs/taro": "1.3.12",
    "@tarojs/taro-alipay": "1.3.12",
    "@tarojs/taro-h5": "1.3.12",
    "@tarojs/taro-qq": "1.3.12",
    "@tarojs/taro-quickapp": "1.3.12",
    "@tarojs/taro-swan": "1.3.12",
    "@tarojs/taro-tt": "1.3.12",
    "@tarojs/taro-weapp": "1.3.12",
    "nerv-devtools": "^1.4.0",
    "nervjs": "^1.4.0",
    "taro-ui": "^2.2.1"
  },
  "devDependencies": {
    "@types/react": "^16.4.6",
    "@types/webpack-env": "^1.13.6",
    "@tarojs/plugin-babel": "1.3.12",
    "@tarojs/plugin-csso": "1.3.12",
    "@tarojs/plugin-sass": "1.3.12",
    "@tarojs/plugin-uglifyjs": "1.3.12",
    "@tarojs/webpack-runner": "1.3.12",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-jsx-stylesheet": "^0.6.5",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-eslint": "^8.2.3",
    "eslint": "^5.16.0",
    "eslint-config-taro": "1.3.12",
    "eslint-plugin-react": "^7.8.2",
    "eslint-plugin-import": "^2.12.0",
    "stylelint": "9.3.0",
    "stylelint-config-taro-rn": "1.3.12",
    "stylelint-taro-rn": "1.3.12",
    "eslint-plugin-taro": "1.3.12",
    "@typescript-eslint/parser": "^1.6.0",
    "typescript": "^3.0.1"
  }

复现步骤
[复现问题的步骤]

  1. 运行命令 npm run dev:h5
  2. 用安卓(4.4.4)自带浏览器访问
**系统信息**
 - 操作系统: [Windows 10]
 - Taro 版本 [ 1.3.13]
 - Node.js 版本 [10.15.3]
 - 报错平台[ h5]
@taro-bot
Copy link

taro-bot bot commented Aug 24, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Littly
Copy link
Contributor

Littly commented Aug 25, 2019

没有复现,提供代码吧

@Littly Littly self-assigned this Aug 25, 2019
@Littly Littly added H5 labels Aug 25, 2019
@taro-bot
Copy link

taro-bot bot commented Aug 25, 2019

Hello~

您的问题我们无法复现。如果有空的话还请拔冗提供一个简单的复现 demo,否则这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@shekang
Copy link
Author

shekang commented Aug 26, 2019

这里的_typeof

/***/ }),

/***/ "./node_modules/_@[email protected]@@tarojs/async-await/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/_@tarojs_async[email protected]@@tarojs/async-await/index.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("/* WEBPACK VAR INJECTION */(function(global) {var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n// support for async functions\n\nif (true) {\n  var g = typeof window !== 'undefined' && window.Math === Math ? window : (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' ? global : this;\n\n  if (!g.Promise) {\n    g.Promise = __webpack_require__(/*! promise-polyfill */ \"./node_modules/[email protected]@promise-polyfill/lib/index.js\");\n  }\n  if (!g.regeneratorRuntime) {\n    g.regeneratorRuntime = __webpack_require__(/*! regenerator-runtime/runtime */ \"./node_modules/[email protected]@regenerator-runtime/runtime.js\");\n  }\n} else {}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../[email protected]@webpack/buildin/global.js */ \"./node_modules/[email protected]@webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvX0B0YXJvanNfYXN5bmMtYXdhaXRAMS4zLjEzQEB0YXJvanMvYXN5bmMtYXdhaXQvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vbm9kZV9tb2R1bGVzL19AdGFyb2pzX2FzeW5jLWF3YWl0QDEuMy4xM0BAdGFyb2pzL2FzeW5jLWF3YWl0L2luZGV4LmpzPzY3MjAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gc3VwcG9ydCBmb3IgYXN5bmMgZnVuY3Rpb25zXG5cbmlmIChwcm9jZXNzLmVudi5UQVJPX0VOViAhPT0gJ2FsaXBheScpIHtcbiAgdmFyIGcgPSB0eXBlb2Ygd2luZG93ICE9PSAndW5kZWZpbmVkJyAmJlxuICB3aW5kb3cuTWF0aCA9PT0gTWF0aCA/IHdpbmRvdyA6IHR5cGVvZiBnbG9iYWwgPT09ICdvYmplY3QnID8gZ2xvYmFsIDogdGhpc1xuXG4gIGlmICghZy5Qcm9taXNlKSB7XG4gICAgZy5Qcm9taXNlID0gcmVxdWlyZSgncHJvbWlzZS1wb2x5ZmlsbCcpXG4gIH1cbiAgaWYgKCFnLnJlZ2VuZXJhdG9yUnVudGltZSkge1xuICAgIGcucmVnZW5lcmF0b3JSdW50aW1lID0gcmVxdWlyZSgncmVnZW5lcmF0b3ItcnVudGltZS9ydW50aW1lJylcbiAgfVxufSBlbHNlIHtcbiAgdm9pZCAwXG59XG4iXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/_@[email protected]@@tarojs/async-await/index.js\n");

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

2 participants