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

Error cannot find module jest #7

Closed
4ureli1 opened this issue Sep 4, 2020 · 3 comments
Closed

Error cannot find module jest #7

4ureli1 opened this issue Sep 4, 2020 · 3 comments

Comments

@4ureli1
Copy link

4ureli1 commented Sep 4, 2020

After installing cfn-dia, while running the program I got the error below:

cfn-dia
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'jest'
Require stack:
- /usr/lib/node_modules/@mhlabs/cfn-diagram/graph/Vis.js
- /usr/lib/node_modules/@mhlabs/cfn-diagram/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/lib/node_modules/@mhlabs/cfn-diagram/graph/Vis.js:5:27)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/node_modules/@mhlabs/cfn-diagram/graph/Vis.js',
    '/usr/lib/node_modules/@mhlabs/cfn-diagram/index.js'
  ]
}

It's not very bad to correct. Just install jest: npm install -g jest. it should be added in the project dependencies

@ljacobsson
Copy link
Owner

Thanks for reporting. 👍

Fixing straight away

@ljacobsson
Copy link
Owner

jest was already there as a devDependency. For some reason it had been included as a require in a non-test file.

Fixed in v1.1.1

Thanks again for reporting

@4ureli1
Copy link
Author

4ureli1 commented Sep 21, 2020

thanks

ljacobsson pushed a commit that referenced this issue Nov 21, 2021
…s-sdk-2.1027.0

chore(deps): bump aws-sdk from 2.808.0 to 2.1027.0
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