conjure-typescript icon indicating copy to clipboard operation
conjure-typescript copied to clipboard

`require function is used in a way in which dependencies cannot be statically extracted` warning

Open qinfchen opened this issue 7 years ago • 3 comments

i am seeing a lot of these warnings when building conjure-typescript locally.

WARNING in ./node_modules/yargs/index.js 12:39-46
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./src/conjureTypeScript.ts

WARNING in ./node_modules/yargs/yargs.js 350:33-40
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./node_modules/yargs/index.js
 @ ./src/conjureTypeScript.ts

WARNING in ./node_modules/yargs/yargs.js 505:83-90
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./node_modules/yargs/index.js
 @ ./src/conjureTypeScript.ts

WARNING in ./node_modules/require-main-filename/index.js 2:25-32
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./node_modules/yargs/yargs.js
 @ ./node_modules/yargs/index.js
 @ ./src/conjureTypeScript.ts

qinfchen avatar Jul 20 '18 12:07 qinfchen

@qinfchen - were you able to resolve this?

tylers-username avatar Feb 04 '19 16:02 tylers-username

No, I didn't resolve this. Is this still an issue? tagging @ferozco and @iamdanfox since they are more familiar with this project.

qinfchen avatar Feb 04 '19 16:02 qinfchen

The issue shouldn't impact the runtime of the CLI. @tylerssn have you been impacted by this?

ferozco avatar Feb 04 '19 17:02 ferozco