>  Q&A  >  본문

javascript - Error: Files glob patterns specified did not match any files

每次运行npm run dev
都会出现 Error: Files glob patterns specified did not match any files

fuhaodeMacBook-Pro:learnRedux fuhao$ npm run dev

> learnRedux@1.0.0 dev /Users/fuhao/Workspace/fuhao/learnRedux
> node server.js

Listening at http://localhost:8010
webpack building...

**Error: Files glob patterns specified did not match any files**

webpack built dc5674d00a5ffc86c117 in 2415ms

不知道该如何解决这个错误,但是这个错误并不影响整个项目
这是我项目的github

怪我咯怪我咯2727일 전519

모든 응답(1)나는 대답할 것이다

  • PHPz

    PHPz2017-04-11 11:27:04

    我觉得问题可能在webpack/config-maker.js里:

    plugins: [
        new styleLintPlugin({
            configFile: '.stylelintrc',
            syntax: 'less',
            files: './src/components/**/*.less'
        })
    ]

    路径不对吧,怎么着也应该是../src/components/**/*.less。这么改之后路径虽然对了,但你的src/components目录下面确实没有任何的less文件,所以什么也没匹配到不是错,当然也不会影响你的项目了

    회신하다
    0
  • 취소회신하다