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

No files matching the pattern were found: "false". #70

Open
thewebmasterp opened this issue Feb 10, 2022 · 2 comments
Open

No files matching the pattern were found: "false". #70

thewebmasterp opened this issue Feb 10, 2022 · 2 comments

Comments

@thewebmasterp
Copy link

thewebmasterp commented Feb 10, 2022

prettier -v
2.5.1

My prettier emacs config:

(require 'prettier-js)
(setq prettier-js-args '(
						 "--trailing-comma" "es5"
						 "--tab-width" "2"
						 "--use-tabs" "true"
						 "--no-semi" "false"
						 "--single-quote" "true"
						 "--no-bracket-spacing" "true"
						 "--bracket-same-line" "true"
						 "--arrow-parens" "avoid" 
))
(add-hook 'js2-mode-hook 'prettier-js-mode)
(add-hook 'web-mode-hook 'prettier-js-mode)

Then, when I save a js file, I get the following errors:

prettier errors:
[warn] --jsx-bracket-same-line is deprecated.
[warn] Ignored unknown option --stdin.
[error] No files matching the pattern were found: "false".
[error] No files matching the pattern were found: "true".

The first warning is understandable. But those two last errors?

I found two solutions:

The first one is to comment out those two lines:

;;"--no-semi" "false"
;;"--no-bracket-spacing" "true"

The second solution is to just downgrade the version of prettier. (I chose the 1.13.1 and it worked like charm).
For now will just keep the version downgraded, but decided to report the bugs.

@hsheikhali1
Copy link

I'm also running into this issue :/ any updates on this bug?

@olymk2
Copy link

olymk2 commented Sep 28, 2022

Just hit this, seems like this PR #69 will fix it anything stopping this being merged ?

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

3 participants