-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
error in iOs 9 safari : SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
#1606
error in iOs 9 safari : SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
#1606
Comments
+1 |
@francoisromain Did you find any solution on that? |
Could you upgrade to the latest version of VuePress? |
@ulivz Ok I'll try that this evening and let you know |
@ulivz I upgraded to the latest version and the problem is still here:
|
I am in the latest version too. Problem is there |
Hello, I haven't tried this yet but I'm pretty sure that your browserslist is not including IOs 9, and there when it bundles is not supported. Your actual browserslits configuration is: https://browserl.ist/?q=%3E1%25 I don't think that giving support for IOs 9 is needed though. Also see if you need to compile your node_modules folder as well, check this issue as reference babel/babel#9712 |
Bug report
Steps to reproduce
repro:
npm i
npm run dev
What is expected?
The website should work in iOs 9 safari
What is actually happening?
blank page with an error:
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
Other relevant information
This works well with vuepress
0.14.10
, but not with1.0.0-alpha.48
My VuePress version is lower and euqal than
1.0.0-alpha.47
:My VuePress version is higher than
1.0.0-alpha.47
, the following is the output ofnpx vuepress info
in my VuePress project:Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Binaries:
Node: 12.1.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: Not Found
Firefox: 66.0.5
Safari: 12.1.1
npmPackages:
@vuepress/core: 1.0.0-alpha.48
@vuepress/theme-default: 1.0.0-alpha.48
vuepress: ^1.0.0-alpha.48 => 1.0.0-alpha.48
npmGlobalPackages:
vuepress: Not Found
The text was updated successfully, but these errors were encountered: