vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

Vue-meta is not supported in Mobile Safari (iOS < 15) due to unsupported class method declaration with arrow function syntax

Open derekvasilich opened this issue 3 years ago • 3 comments

https://github.com/nuxt/vue-meta/blob/e9adc99bdc909d6daa5f0678f57f321a6ff2d6f6/dist/vue-meta.esm-browser.js#L811

Mobile Safari on iOS < 15 (iOS 14.3 tested) generates: "SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list."

Working solution is to replace line 881 in dist/vue-meta.esm-browser.js static create = (isSSR, config, resolver) => { with: static create(isSSR, config, resolver) {

Alternatively, transpiling of the dependency can be used.

derekvasilich avatar May 05 '22 20:05 derekvasilich

+1

kevingobert avatar May 18 '22 07:05 kevingobert

+1 we have the same issue for users using Safari version 14.0.3 and lower.

antoineguillaume avatar May 18 '22 07:05 antoineguillaume

+1 we found this bug in old Safari 13.1 MacOs and possibly other Safari versions. Does not show up in Chrome or the latest Safari releases.

jaminm avatar May 31 '22 00:05 jaminm