![](/img/trans.png)
[英]Unable to use --suites option in protractor, gives 'Spec patterns did not match any files' error
[英]Error: Files glob patterns specified did not match any files
當我npm運行dev
會發生此錯誤,但不會影響我的項目
雖然一切正常,但我想解決這個錯誤
MacBook-Pro:learnRedux fuhao $ npm run dev
learningRedux@1.0.0 dev / Users / fuhao / Workspace / fuhao / learnRedux節點server.js
webpack構建...
錯誤:指定的文件全局模式與任何文件都不匹配
webpack在2670毫秒內構建了955aef52aa91434f6ef1
就我而言,我遇到了同樣的錯誤:
這是因為/src
文件夾中沒有scss
或css
文件,並且我的webpack配置包含stylelint
loader的以下設置:
new StyleLintPlugin({
configFile: './stylelint.json',
context: "./src",
files: "**/*.scss"
})
我沒有找到該錯誤的任何解決方案,因為它根本不影響我的構建。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.