-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
ReferenceError: Can't find variable: mutableInstrumentations ios 10.3.1 #2457
Comments
incorrect reproduction link @0x30 |
may not need to provide a reproduction link. Follow the steps below to see this problem
This is the project and recorded file |
@edison1105 @yyx990803 Can we reopen and fix this issue? |
ping @HcySunYang |
should change code as below? terser({
module: /^esm/.test(format),
compress: {
ecma: 2015,
pure_getters: true
},
+ mangle:{ safari10: true },
safari10: true
}) |
I just checked the code of terser https://github.com/terser/terser/blob/master/lib/minify.js, seems yes. @edison1105 can you make a PR? That way we can provide a nightly build for @huanggm to testing. |
got it |
@edison1105 Has the problem been solved?I opened it blank in iOS10 + |
It seems has not been fixed. |
Oh sure, I made a mistake |
Could anyone fix this issue? I desire to do something. But I don't have a clue. |
I'm in the same boat, anyone found a fix for this? |
Is there any workaround for this? Got same problem. |
Had same problem
Tried to fix with chainWebpack:
not worked. console.log shows this for terserOptions:
|
BTW Looks like code from !*** ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js ***! |
use babel handle vue3 source to ES5,can solve the above problems: // vue.config.js
module.exports = {
transpileDependencies: [/@vue\/*/],
...
} but in ios10.x create blank html,because Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller' the browser threw an exception TypeError "arguments","callee" and "caller" cannot be accessed in strict mode i make a PR can fixed #4900 @edison1105 @huanggm @HcySunYang |
官方尽快解决这个问题啊,搁置了两个月了 |
官方尽快解决这个问题啊,这个问题仍然未解决。我尝试了以上的所有方法 |
you need change .env file. NODE_ENV = production. |
yeah, Environmental issues have been identified。thank u |
For Vue CLI users, make sure to transpile Vue itself if you intend to support iOS 10 (see #2457 (comment)) The remaining runtime error should be fixed after #4900 is released in the next patch. I don't have an iOS 10 device to test so please report under this thread if anyone gets it working. |
Version
3.0.0
Reproduction link
https://github.com/0x30/vue-next-issues-2457
Steps to reproduce
After waiting for the installation, run it. Use ios 10.3.1 to open the device and you can see the error
What is expected?
normal operation
What is actually happening?
ReferenceError: Can't find variable: mutableInstrumentations
[Log] Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E8301 Safari/602.1 (eruda, line 27)
If it is difficult to find a specific version of the device, you can use xcode to download the ios10 version of the simulator to simulate
The text was updated successfully, but these errors were encountered: