Proxy error in IE 11 (sentry disabled)

BastienMbz
0
BastienMbz
commented a year ago

Version

v3.2.0

Reproduction link

https://jsfiddle.net/

Steps to reproduce

Create new Nuxt project.
Install @nuxtjs/sentry >= 3.2.0

Disable sentry in the configuration

sentry: {
    disabled: process.env.NODE_ENV !== 'production',
  }

Open the project in IE 11

What is expected ?

The project should work as in 3.1.0

What is actually happening?

The following error occured : "Proxy is not defined"

ReferenceError: « Proxy » est indéfini
   {
      [functions]: ,
      __proto__: { },
      description: "« Proxy » est indéfini",
      message: "« Proxy » est indéfini",
      name: "ReferenceError",
      number: -2146823279,
      stack: "ReferenceError: « Proxy » est indéfini
   at __webpack_exports__.default (eval code:27:3)
   at _callee2$ (eval code:393:13)
   at tryCatch (eval code:45:7)
   at invoke (eval code:271:9)
   at prototype[method] (eval code:97:9)
   at asyncGeneratorStep (eval code:5:5)
   at _next (eval code:27:9)
   at Anonymous function (eval code:114:13)
   at flush (eval code:26:9)",
      Symbol()_6.guptzs2u5wd: undefined,
      Symbol(react.element)_e.guptzs2u5wd: undefined
   }

Additional comments?

It's due to the new file : sentry-module/lib/sentry.mocked.js that contains new Proxy not supported by IE 11.

CodeSandbox not working in IE it's impossible to give you a reproduction link.

bug
0
BastienMbz
0
BastienMbz
commented a year ago

Thanks

0
Informations
Bug ReportOpen
#c82 - Created a year ago