简体   繁体   English

错误:指定的文件全局模​​式与任何文件都不匹配

[英]Error: Files glob patterns specified did not match any files

This is my github 这是我的github

When I npm run dev 当我npm运行dev

This error will happen,but it doesn't influence my project 会发生此错误,但不会影响我的项目

Although everything is ok,I want to solve this error 虽然一切正常,但我想解决这个错误

fuhaodeMacBook-Pro:learnRedux fuhao$ npm run dev MacBook-Pro:learnRedux fuhao $ npm run dev

learnRedux@1.0.0 dev /Users/fuhao/Workspace/fuhao/learnRedux node server.js learningRedux@1.0.0 dev / Users / fuhao / Workspace / fuhao / learnRedux节点server.js

Listening at http://localhost:8010 http:// localhost:8010上收听

webpack building... webpack构建...

Error: Files glob patterns specified did not match any files 错误:指定的文件全局模​​式与任何文件都不匹配

webpack built 955aef52aa91434f6ef1 in 2670ms webpack在2670毫秒内构建了955aef52aa91434f6ef1

In my case I got same error: 就我而言,我遇到了同样的错误:

It was caused because there were no scss or css files in the /src folder and my webpack config contains such settings for stylelint loader: 这是因为/src文件夹中没有scsscss文件,并且我的webpack配置包含stylelint loader的以下设置:

new StyleLintPlugin({
  configFile: './stylelint.json',
  context: "./src",
  files: "**/*.scss"
})

I didn't find any solution for that error as it didn't affect my build at all. 我没有找到该错误的任何解决方案,因为它根本不影响我的构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在量角器中使用--suites选项,出现“规范模式与任何文件都不匹配”错误 - Unable to use --suites option in protractor, gives 'Spec patterns did not match any files' error 这两个glob模式之间有什么区别吗? - Is there any difference between these 2 glob patterns? 导入多个文件 - Import multiple files with a glob 角度错误选择器不匹配任何元素 - Angular Error The selector did not match any elements 任何 javascript 方法,如 php “glob” 来获取与指定模式匹配的文件名或目录? - Any javascript method like php “glob” to get filenames or directories that match the specified pattern? 灰烬-路径或模式“ vendor / ic-ajax / dist / named-amd / main.js”与任何文件都不匹配 - Ember - Path or pattern “vendor/ic-ajax/dist/named-amd/main.js” did not match any files ESlint:通过 glob 模式验证文件 - ESlint: validate files by glob pattern 将玩笑与带有 glob 导入的文件一起使用 - Using jest with files with glob imports 错误:断言失败:URL“/”与应用程序中的任何路由都不匹配 - Error: Assertion Failed: The URL '/' did not match any routes in your application Renderer2 错误 - id 不匹配任何元素 - Renderer2 error - id did not match any elements
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM