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 'tests' were found. #2854

Closed
ghost opened this issue Oct 31, 2018 · 11 comments
Closed

No files matching 'tests' were found. #2854

ghost opened this issue Oct 31, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Oct 31, 2018

Version

3.0.5

Reproduction link

Not required. Error occurs when running vue create command

Node and OS info

Node: v10.11.0 (MacOS, NVM)

Steps to reproduce

Init project with vue-cli 3.0.5 version and node 10.11.0 version with this configuration:

Vue CLI v3.0.5
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Vuex, CSS Pre-processors, Linter
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No

What is expected?

Initialization of the project

What is actually happening?

Initialization of the project is interrupted with an error

Log


Vue CLI v3.0.5
✨ Creating project in /Users/User/Projects/Project.
🗃 Initializing git repository...
⚙ Installing CLI plugins. This might take a while...

fsevents@1.2.4 install /Users/User/Projects/Project/node_modules/fsevents
node install

[fsevents] Success: "/Users/User/Projects/Project/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

yorkie@2.0.0 install /Users/User/Projects/Project/node_modules/yorkie
node bin/install.js

setting up Git hooks
done

added 1186 packages from 754 contributors and audited 13857 packages in 51.946s
found 0 vulnerabilities

🚀 Invoking generators...
📦 Installing additional dependencies...

added 43 packages from 78 contributors, updated 2 packages, moved 1 package and audited 14213 packages in 24.772s
found 0 vulnerabilities

ERROR Error: No files matching 'tests' were found.
Error: No files matching 'tests' were found.
at resolvedPathsByGlobPattern.reduce (/Users/User/Projects/Project/node_modules/eslint/lib/util/glob-utils.js:244:19)
at Array.reduce ()
at Object.listFilesToProcess (/Users/User/Projects/Project/node_modules/eslint/lib/util/glob-utils.js:242:59)
at CLIEngine.executeOnFiles (/Users/User/Projects/Project/node_modules/eslint/lib/cli-engine.js:513:36)
at lint (/Users/User/Projects/Project/node_modules/@vue/cli-plugin-eslint/lint.js:47:25)
at api.onCreateComplete (/Users/User/Projects/Project/node_modules/@vue/cli-plugin-eslint/generator/index.js:106:25)
at Creator.create (/Users/User/.nvm/versions/node/v10.11.0/lib/node_modules/@vue/cli/lib/Creator.js:176:13)
at process._tickCallback (internal/process/next_tick.js:68:7)

@Pythonfo
Copy link

我也是这个报错。可能是因为@vue/cli-plugin-eslint更新了。
translate: That's the same error I made.Probably because @vue/cli-plugin-eslint has been updated.

@zilan830
Copy link

我也遇到这个问题了。但是我在卸载@vue/cli之后重新下载再创建项目后,还是报了同样的错误。
translate:I met the same error. It also happened after I uninstalled @vue/cli then installed again.

@Adam-Ponting
Copy link

Same error as the original post here

@LeeStaySmall
Copy link

image
image

@LeeStaySmall
Copy link

Can successfully create a project, but can't run "npm run link", maybe related to the new version, there is a problem with the eslint referenced in the version.

@sodatea
Copy link
Member

sodatea commented Oct 31, 2018

FYI: It's caused by this issue in ESLint v5: eslint/eslint#10587

@ideacco
Copy link

ideacco commented Oct 31, 2018

I also have the same problem:
vue-cli-service lint
ERROR Error: No files matching 'tests' were found.

@bradly-fairbanks
Copy link

bradly-fairbanks commented Nov 1, 2018

@sodatea Is this issue actually closed? Could vue-cli implement a quick workaround by changing the matching patterns? That's what they say to do in that issue thread, but as consumers of vue-cli, that's not accessible to us.

laomao800 added a commit to laomao800/vue-item-list-selector that referenced this issue Dec 14, 2018
@dasDaniel
Copy link

had the same issue. Confirming that removing "eslint": "^5.8.0", fixed it

@zetaraku
Copy link

zetaraku commented Aug 21, 2021

Since @vue/cli-plugin-eslint@4.5.13 needs a peer dependency of eslint@<7.0.0,
projects using eslint@>=7.0.0 and @vue/cli-plugin-eslint@3.1.1 will still have this issue.
Manually specifying the lint path should solve this problem: vue-cli-service lint ./src/

@cmauf
Copy link

cmauf commented Sep 20, 2021

Thanks so much @zetaraku, this issue boggled me so much in a LTS project and now I fixed it!

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

No branches or pull requests

10 participants