-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Comments
我也是这个报错。可能是因为@vue/cli-plugin-eslint更新了。 |
我也遇到这个问题了。但是我在卸载@vue/cli之后重新下载再创建项目后,还是报了同样的错误。 |
Same error as the original post here |
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. |
FYI: It's caused by this issue in ESLint v5: eslint/eslint#10587 |
I also have the same problem: |
@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. |
had the same issue. Confirming that removing |
Since |
Thanks so much @zetaraku, this issue boggled me so much in a LTS project and now I fixed it! |
Version
3.0.5
Reproduction link
Not required. Error occurs when running
vue create
commandNode 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] 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
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)
The text was updated successfully, but these errors were encountered: