-
Notifications
You must be signed in to change notification settings - Fork 452
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
ts-jest[cli] (FATAL) Cannot find module 'jest-config' #758
Comments
Nevermind, had some old pinned jest and ts-jest versions from a copied over project. Works now! |
I have the same issue with
@mlynch what versions works for you? |
@pavvell this looks like very old version, can't you update jest and ts-jest to latest? I think latest jest is 23.6 and for ts-jest 23.10.4 just got published |
I'm in the process of upgrading to the latest version, and now I'm getting this error. The version I was using before ([email protected]) still works, though. Jest itself is now at 23.6.0. |
@jktravis this is usually reported by users who have some old version/artefacts remainings in their node_modules directory. The only deps related to jest/ts-jest which should be listed in your package.json should be: So I'd advise you to check that you have only this (related to jest, except if you have other pre-processors, but things like |
I did have |
Same here. Latest version of NPM, |
#853 will be fixing this I think, I'll try to review it this Sun/Mon, tho #758 (comment) is still valid |
I managed to solve this problem like this: my adding this flag will probably solve your problem. |
Issue :
When following the automated install steps, the
jest-config
module cannot be foundnpm install --save-dev jest ts-jest
npx ts-jest config:init
Can confirm
jest-config
is installed innode_modules/
Expected behavior :
npx ts-jest config:init
completesThe text was updated successfully, but these errors were encountered: