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
I was running through the setup steps and at the "generate interfaces" step I got the following error:
$ yarn clarigen
yarn run v1.22.10
$ /my-clarigen-project/node_modules/.bin/clarigen
internal/modules/cjs/loader.js:985
throw err;
^
Error: Cannot find module 'fs/promises'
Require stack:
- /my-clarigen-project/node_modules/@clarigen/cli/dist/cli.cjs.development.js
- /my-clarigen-project/node_modules/@clarigen/cli/dist/index.js
- /my-clarigen-project/node_modules/@clarigen/cli/bin/run
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/my-clarigen-project/node_modules/@clarigen/cli/dist/cli.cjs.development.js:7:16)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/my-clarigen-project/node_modules/@clarigen/cli/dist/cli.cjs.development.js',
'/my-clarigen-project/node_modules/@clarigen/cli/dist/index.js',
'/my-clarigen-project/node_modules/@clarigen/cli/bin/run'
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I downloaded the last release build for clarity-cli
Yarn: v1.22.10
Node: v12.16.1
The text was updated successfully, but these errors were encountered:
I see - this must be some issue with your tsconfig not liking that import. You're in node 12, which has the fs promises API. Can you paste your tsconfig.json you're using? I'd check that against the counter example repo.
Thanks for trying it! Sorry for the late follow up.
I was running through the setup steps and at the "generate interfaces" step I got the following error:
clarity-cli
The text was updated successfully, but these errors were encountered: