GoogleChrome / proxy-polyfill

Proxy object polyfill
Apache License 2.0
1.14k stars 175 forks source link

TypeError: Proxy polyfill does not support trap 'has' #49

Closed 349989153 closed 6 years ago

349989153 commented 6 years ago

I ran my Cordova APP on a 'vivox6s' cell phone and got this error.

I import this lib in the index.html like:

<!DOCTYPE html>
<html lang="en">

<head>
  <!-- <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'"
  /> -->
  <!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;"> -->
  <!-- <meta http-equiv="Content-Security-Policy" content="default-src https://codepush.azurewebsites.net 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"
  /> -->
  <meta name="format-detection" content="telephone=no">
  <meta name="msapplication-tap-highlight" content="no">
  <!--<meta name="viewport" content="viewport-fit=cover, user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">-->
  <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
  <script src="./polyfill.min.js"></script>
  <script src="./proxy.min.js"></script>
  <script src="./fastclick.js"></script>

And the ./polyfill.min.js comes from babel-polyfill, version 6.26.0, by the way.

Looking for some help or guide, because I can't see any related solution about this issue on Google.

blade254353074 commented 6 years ago

@349989153 Have you solved this problem? I met it on Meizu Browser.

349989153 commented 6 years ago

@blade254353074 No, somebody tell me we can only use this feature on supported browser, and there is no poly-fill or workaround can be use. So I downgrade my mobx to @4.x.x, since @5.x.x needs proxy

blade254353074 commented 6 years ago

I downgraded too...