mozilla / node-convict

Featureful configuration management library for Node.js
Other
2.34k stars 146 forks source link

Convict + react-scripts build + CI=true throws error #385

Closed deema089786 closed 2 years ago

deema089786 commented 3 years ago

When I try to build React app with react-scripts build (typescript) and env var CI=true I get this error

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

Failed to compile.

./node_modules/yargs-parser/index.js
Critical dependency: the request of a dependency is an expression

When I remove all usage of Convict from my code or set CI=false - build goes as expected

convict: 6.0.1 "@types/convict": "^6.0.1", react-scripts: 4.0.3

NodeJS: 14.15.1

Is there any way to deal with that? (except setting CI to false)

dnlrsr commented 3 years ago

+1 same here

madarche commented 2 years ago

Duplicate of #400