Open yexiaodong opened 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.
dome: https://github.com/yexiaodong/vite-ie
error in ie
Unhandled promise rejection Error: assets/index-legacy.0b779598.js
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
Unhandled promise rejection TypeError: strict 模式下不允许访问函数或参数对象的“caller”属性
code:
legacy({ targets: [ 'ie >= 11' ] })
same problem
same too
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.
Unhandled promise rejection TypeError: strict 模式下不允许访问函数或参数对象的“caller”属性
code:
legacy({ targets: [ 'ie >= 11' ] })