[英]Error: Files glob patterns specified did not match any files
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
文件夹中没有scss
或css
文件,并且我的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.