You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run yarn generate-clients on the temporary directory
$ yarn generate-clients -m ~/Downloads/temp
Error thrown:
yarn run v1.22.4
$ node ./scripts/generate-clients -m /home/trivikr/Downloads/temppreparing models from /home/trivikr/Downloads/temp...copying model s3.2006-03-01.json...TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object at copyFileSync (fs.js:1905:10) at generateClients (/local/home/trivikr/workspace/aws-sdk-js-v3/scripts/generate-clients/code-gen.js:23:7) at /local/home/trivikr/workspace/aws-sdk-js-v3/scripts/generate-clients/index.js:36:11 at Object.<anonymous> (/local/home/trivikr/workspace/aws-sdk-js-v3/scripts/generate-clients/index.js:57:3) at Module._compile (internal/modules/cjs/loader.js:1176:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10) at Module.load (internal/modules/cjs/loader.js:1040:32) at Function.Module._load (internal/modules/cjs/loader.js:929:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 { code: 'ERR_INVALID_ARG_TYPE'}error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
yarn generate-clients -m
throws TypeError [ERR_INVALID_ARG_TYPE]SDK version number
master
Details of the browser/Node.js version
To Reproduce (observed behavior)
$ mkdir ~/Downloads/temp
$ cp codegen/sdk-codegen/aws-models/s3.2006-03-01.json ~/Downloads/temp
yarn generate-clients
on the temporary directory$ yarn generate-clients -m ~/Downloads/temp
Error thrown:
Expected behavior
yarn generate-clients -m
succeedsThe text was updated successfully, but these errors were encountered: