alloc / vite-plugin-legacy

Vite-generated legacy bundles
MIT License
53 stars 6 forks source link

error in ie11 #12

Open yexiaodong opened 3 years ago

yexiaodong commented 3 years ago

Unhandled promise rejection TypeError: strict 模式下不允许访问函数或参数对象的“caller”属性

code: legacy({ targets: [ 'ie >= 11' ] })

aleclarson commented 3 years ago

I don't have a machine that can run IE 11, so you're on your own.

Consider providing example code that produces the same error, so others can maybe help you.

yexiaodong commented 3 years ago

dome: https://github.com/yexiaodong/vite-ie error in ie Unhandled promise rejection Error: assets/index-legacy.0b779598.js

xcchcaptain commented 3 years ago

Unhandled promise rejection TypeError: strict 模式下不允许访问函数或参数对象的“caller”属性

code: legacy({ targets: [ 'ie >= 11' ] })

@yexiaodong used with vue3,encountered same problem, how is it going ? I tried to delete the declaration of "use strict ", the error in console changed to 'Unhandled promise rejection ReferenceError: “Proxy”未定义', I also found the Proxy can't be polyfilled with polyfill.io, so i thought vite and vue3 can not work well with IE11

use vite and vue2,with this plugin ,haven't found the problem

Leonvanx commented 3 years ago

Unhandled promise rejection TypeError: strict 模式下不允许访问函数或参数对象的“caller”属性

code: legacy({ targets: [ 'ie >= 11' ] })

same problem

gentlecoder commented 3 years ago

same too

seanthingee commented 3 years ago

I'm having a similar problem with IE 11 except that I'm getting Unhandled promise rejection undefined. I've found a hackish workaround, at least for me. I'm using svelte. Put this into the file that is giving you the error (any where inside the Githubissues.

  • Githubissues is a development platform for aggregating issues.