Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn clarigen results in MODULE_NOT_FOUND #2

Open
agraebe opened this issue Jun 30, 2021 · 1 comment
Open

yarn clarigen results in MODULE_NOT_FOUND #2

agraebe opened this issue Jun 30, 2021 · 1 comment

Comments

@agraebe
Copy link

agraebe commented Jun 30, 2021

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
@hstove
Copy link
Contributor

hstove commented Jul 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants