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

getting error like this when i try to hit npm test #88

Open
jeminbhalani opened this issue Jan 6, 2023 · 2 comments
Open

getting error like this when i try to hit npm test #88

jeminbhalani opened this issue Jan 6, 2023 · 2 comments

Comments

@jeminbhalani
Copy link

jeminbhalani commented Jan 6, 2023

npm test

[email protected] test
babel-node sagas.spec.js | tap-spec

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'D:\Jemin\Learning\redux-saga\redux-saga-beginner-tutorial\sagas.spec.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at Object. (D:\Jemin\Learning\redux-saga\redux-saga-beginner-tutorial\node_modules@babel\node\lib_babel-node.js:151:21)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

@Vindexus
Copy link

Vindexus commented Mar 4, 2023

I got this error because I had named the file "saga.spec.js". Make sure there are no typos in the filename.

@yevhenshashnin
Copy link

need to install @babel/node

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

3 participants