-
Notifications
You must be signed in to change notification settings - Fork 36
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
Older versions of Node throwing SyntaxError: Unexpected token '?' #304
Comments
I know it's extra work to support this so let me know if and how I can help! (haven't dug into the code deep enough to know what to tweak but if you give a brief guidance I will be happy to do it!) |
it's because de Nullish coalescing But you can change the BAT_THEME = process.env.FZF_PREVIEW_PREVIEW_BAT_THEME ?? "OneHalfDark" to BAT_THEME = process.env.FZF_PREVIEW_PREVIEW_BAT_THEME || "OneHalfDark" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems summary
I am working on a project that uses Node version
12.16.1
.Neovim picks this version of Node and uses it, making some fzf-preview functions to fail with syntax errors since I believe fzf-preview uses latest Node versions.
An example, when I run
:FzfPreviewProjectGrep
, I getSyntaxError: Unexpected token '?'
Expected
The grep preview above works
Environment Information
fzf-preview version (package.json):
2.12.9
OS:
Mac OS Monterey
Vim/Neovim version:
0.7.0
Provide a minimal init.vim
Screenshot
Dockerfile that reproduces the problem (if possible)
Refer to https://github.com/yuki-yano/fzf-preview.vim/blob/main/.github/issue_example/Dockerfile
The text was updated successfully, but these errors were encountered: