简体   繁体   English

错误:找不到与模式“'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'”匹配的文件

[英]Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found

I am getting error while running stylelint command on windows enviornment :Windows 环境中运行stylelint命令时出现错误:

command : "lint-styles": "stylelint ./src/views/{tokens,atoms,molecules,organisms}/**/*.scss --fix",命令: "lint-styles": "stylelint ./src/views/{tokens,atoms,molecules,organisms}/**/*.scss --fix",

Getting error:获取错误:

Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found.
at globby.then (C:\workplace\Ulta\web-common\node_modules\stylelint\lib\standalone.js:212:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

While no error on Mac .虽然在 Mac 上没有错误 What should I change in it ?我应该改变什么?

你需要在你的 glob 周围加上引号

"lint-styles": "stylelint \"./src/views/{tokens,atoms,molecules,organisms}/**/*.scss\" --fix"

So issue was with the folder names, I changed tokens,atoms,molecules,organisms to Tokens,Atoms,Molecules,Organisms .所以问题在于文件夹名称,我将tokens,atoms,molecules,organisms更改为Tokens,Atoms,Molecules,Organisms

Because I have folders names starting with capitals but in command I was using first letter small.因为我有以大写开头的文件夹名称,但在命令中我使用第一个字母小。 Though it was working on mac as it is.虽然它是在 mac 上运行的。

暂无
暂无

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

相关问题 “没有找到与模式“src”匹配的文件。” 使用“npx eslint src”或“npx eslint src/”时 - "No files matching the pattern "src" were found." when using "npx eslint src" or "npx eslint src/" 未找到与该模式匹配的文件:“'**/*.js'” - No files matching the pattern were found: "'**/*.js'" 找不到与“xxx.js”匹配的文件中的错误 - ERROR in No files matching 'xxx.js' were found 没有找到匹配的文件...。 (ReactJS) - No matching files ... were found. (ReactJS) 在“分子”中将样式化组件“原子”嵌套在一起 -> 样式/定位 - Nesting styled-components 'Atoms' together in 'Molecules' -> Styling / Positioning [React Webpack]:找不到模块:错误:无法解析 'C:\Users\...' 中的 'src/views/UserList' - [React Webpack]: Module not found: Error: Can't resolve 'src/views/UserList' in 'C:\Users\…' 找不到模块:错误:无法解析“./*.scss” - Module not found: Error: Can't resolve './*.scss' 要在 TS 中使用的 SCSS 导出的汇总构建失败([:] 错误。'default' 不是由 src/styles/variables.scss 导出的) - Rollup Build failure for SCSS exports to be used in TS ( [!] Error: 'default' is not exported by src/styles/variables.scss ) 错误:在“ / home / react-project / workarea / scss”中找不到PostCSS Config - Error: No PostCSS Config found in '/home/react-project/workarea/scss' 找不到输入模块中的错误:错误:无法解析“ ./src” - ERROR in Entry module not found: Error: Can't resolve './src' in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM