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
Ignored unknown option: --config-precedence #53
Comments
You need to update your global prettier to the latest version. |
Done that already it's 1.7.0 |
Do you use nvm? |
you mean node version manager? |
Yes |
no i dont |
Did you updated vim-prettier. They released a new version three days ago. |
yep |
@damcatee the prettier CLI resolution will first look for local prettier installed on your project, then will look on the global one and if nothing is found will check on the vim-prettier installation directory. Could you please check the following: 1 - are you running prettier in a folder of a project that have would have a 2 - confirm that prettier is installed globally and is accessible and is of Version 1.7+ 3 - if no prettier is found globally go to your 'vim-prettier' installation directory and do either 'npm install' or 'yarn install' If your are on a unix system you can also run |
Since you have mentioned that you have prettier installed globally it's most likely that along the parent ancestry of where you started your vim session you will find a |
Hi @danmcatee, To avoid confusion I have just done a new
To further debug this issue I recomend the following steps:
Please let me know if that helps resolving your issue |
Hi @danmcatee, Will close this issue for now, if you feel like the above commands have no helped you identify the problem please feel free to re-open it. |
I had the same problem that's due to a local installed version (version 1.3) of the project though my global version is the latest (1.7). Once I updated the local version to the latest, the problem is solved. |
Is there a way to override and specify a specific path for prettier to vim-prettier? (I cannot update the version of prettier in a project i'm working on) |
@magicmark currently there is not, but its a good idea, will create a task for it and see if I can deploy a new In the meantime a work-around is delete the prettier local installation folder from the project you are working on |
@magicmark created the task for it #56 will try to get into it ASAP |
@magicmark Just did new release of You should now be able to overwrite the default path by adding this flag to your " Set the prettier CLI executable path
let g:prettier#exec_cmd_path = "~/path/to/cli/prettier" |
Hi @jojoyuji Could you please confirm that:
Sometimes you may have the global installed prettier version of 1.7.4+ but you may be working on projects that still have the old prettier installed on their |
Quoting the comment from #73 (comment) to this thread in case some other users may have been facing similar issue:
|
I get this error one every save
This is the configuration in my vimrc file:
let g:prettier#config#print_width = 120
let g:prettier#config#bracket_spacing = 'false'
let g:prettier#quickfix_enabled = 1
let g:prettier#autoformat = 0
autocmd BufWritePre .js,.jsx,.mjs,.ts,.tsx,.css,.less,.scss,.json,.graphql Prettier
The text was updated successfully, but these errors were encountered: