Ryan Wang 👍 遇到了类似的问题,我看ui下的src文件夹的确存在,不知道为什么还会报错。
PS C:\workspace\study\halo> .\gradlew build
Task :ui:lint FAILED
@ lint C:\workspace\study\halo\ui
eslint './src' './console-src' './uc-src' --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore --max-warnings=0 -f html -o build/lint-result/index.html && pnpm run lint:packages
Oops! Something went wrong! 🙁
ESLint: 8.43.0
No files matching the pattern "'./src'" were found.
Please check for typing mistakes in the pattern.
鈥塃LIFECYCLE鈥? Command failed with exit code 2.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':ui:lint'.
Process 'command 'pnpm.cmd'' finished with non-zero exit value 2
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3s
26 actionable tasks: 2 executed, 24 up-to-date
PS C:\workspace\study\halo>