Cannot find module '../../package' from 'node.js'
See original GitHub issue- Issue
With the latest version 21.2.0 I get the error Cannot find module '../../package' from 'node.js' in all of my tests. I already changed my jest config from ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" to "^.+\\.tsx?$": "ts-jest" but the error remains.
- Expected behavior
Tests should run as before.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
This error can be encountered if you are require ing a module that has a missing or incorrect main ...
Read more >How to resolve "Cannot find module" error in Node - Sabe.io
The issue is that Node is unable to find the module that you are trying to import into your Node application. The most...
Read more >Cannot find module 'X' error in Node.js | bobbyhadz
To solve the "Cannot find module" error in Node.js, make sure to install the package from the error message if it's a third-party...
Read more >Error: Cannot find module in JavaScript [SOLVED]
Error: Cannot find module 'package-name' is a popular module error message that you might face when working with Node and its packages which...
Read more >How to solve "Error: Cannot find module '*.js'" with Node.js
Make sure you are in the correct directory. Make sure you are trying to run the correct file name. File and directory names...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I get this error if I don’t have
"json"as a value inmoduleFileExtensions.21.2.1has been published