Replies: 1 comment 2 replies
-
Yarn v1.21.1 is pretty old (2+ years), maybe it'll help to upgrade your yarn and node versions to latest LTS? Then start again fresh by deleting the project's node_modules directory, run If you still can't make it work, using Jest should be OK. Try |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just now forked repo and installed dependencies which got succeeded.
Now I am trying to run tests then its giving me this error
λ yarn test
yarn run v1.21.1
$ karma start config/karma.js
06 10 2021 23:16:38.153:ERROR [config]: Error in config file!
Error: Cannot find module 'webpack'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Personal\date-fns\config\webpack.js:2:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Beta Was this translation helpful? Give feedback.
All reactions