Skip to content
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

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

Open
derekvasilich opened this issue May 5, 2022 · 3 comments

Comments

@derekvasilich
Copy link

static create = (isSSR, config, resolver) => {

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.

@kevingobert
Copy link

+1

@antoineguillaume
Copy link

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

@jaminm
Copy link

jaminm commented May 31, 2022

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants