Error reporting scenario
Jenkins uses NPM to build Vue. The front end reports an error, and the manual build is normal
Error reporting, such as
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
src/api/api.js
Line 2:8: 'React' is defined but never used no-unused-vars
src/api/attestation/index.js
Line 2:8: 'qs' is defined but never used no-unused-vars
src/api/query/index.js
Line 2:8: 'qs' is defined but never used no-unused-vars
...
resolvent
# Adding variables
export CI=false
npm install
Link:
https://stackoverflow.com/questions/62663451/treating-warnings-as-errors-because-process-env-ci-true-failed-to-compile
Read More:
- [Solved] error “invalid command name “tcl_findLibrary““
- [Solved] Electron Error: ReferenceError: require is not defined
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- Mac Error: sh: vue-cli-service: command not found
- How to Solve Maven Error: Return code is: 501 , ReasonPhrase:HTTPS Required.
- Mac error: SH: Vue cli service: command not found
- How to Fix NSS error 12190 in curl accessing to HTTPS
- [Solved] ambiguous import: found package github.com/spf13/cobra/cobra in multiple modules
- How to Solve Pandas Error: nested renamer is not supported python
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- [Solved] Unexpected error while saving file: xxx.ipynb database or disk is full
- [Solved] Execution failed for task ‘:app:mergeDebugJavaResource‘.
- [Solved] Vue3 Error: export ‘createRouter‘ was not found in ‘vue-router‘
- [Solved] Eval Error: Uncaught ReferenceError: False is not defined
- Attributeerror encountered when using ceilometer and gnocchi to execute commands related to gnocchi metric list: _Environ instance has no attribute ‘
- [Solved] Error: In the Function of ‘fmt::v8::detail::error_handler::on_error(char const*)’
- [Solved] Angular12 ng build Error: Index html generation failed.
- [Solved] VSCode Edit LaTeX Error: Recipe terminated with error.
- [Solved] Android Error: AAPT: error: unescaped apostrophe in string;Multiple substitutions specified in non-positi
- Solve the VUE startup problem (You may use special comments to disable some warnings)