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

Cannot find module 'lodash/fp' #269

Closed
bmitchinson opened this issue Jul 8, 2020 · 4 comments
Closed

Cannot find module 'lodash/fp' #269

bmitchinson opened this issue Jul 8, 2020 · 4 comments
Labels

Comments

@bmitchinson
Copy link

bmitchinson commented Jul 8, 2020

> [email protected] travis-start-and-test /home/travis/build/graze-analytics/peach
> start-server-and-test start http://localhost:3000 cy:run
internal/modules/cjs/loader.js:965
  throw err;
  ^
Error: Cannot find module 'lodash/fp'
Require stack:
- /home/travis/build/graze-analytics/peach/node_modules/wait-on/lib/wait-on.js
- /home/travis/build/graze-analytics/peach/node_modules/start-server-and-test/src/index.js
- /home/travis/build/graze-analytics/peach/node_modules/start-server-and-test/src/bin/start.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
    at Function.Module._load (internal/modules/cjs/loader.js:838:27)
    at Module.require (internal/modules/cjs/loader.js:1022:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/travis/build/graze-analytics/peach/node_modules/wait-on/lib/wait-on.js:8:72)
    at Module._compile (internal/modules/cjs/loader.js:1118:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Function.Module._load (internal/modules/cjs/loader.js:875:14)
    at Module.require (internal/modules/cjs/loader.js:1022:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/travis/build/graze-analytics/peach/node_modules/wait-on/lib/wait-on.js',
    '/home/travis/build/graze-analytics/peach/node_modules/start-server-and-test/src/index.js',
    '/home/travis/build/graze-analytics/peach/node_modules/start-server-and-test/src/bin/start.js'
  ]
}

Is this a bug report or a feature request?

Bug Report

  • version: node: 13.14 + start-server-and-test: 1.11
  • platform: MacOS + Travis (linux)
  • expected behavior: the command executes
  • actual behavior: the command fails

Feel like I'm making a silly mistake here. Any ideas?

@j-chao
Copy link

j-chao commented Jul 8, 2020

I get the same error.

It looks like it works up to version 1.10.6.
Starting with version 1.10.7, the package throws the above error.

@mj12albert
Copy link

mj12albert commented Jul 9, 2020

got this error while updating cypress from 4.8.0 to 4.10.0... fixed by updating my lodash dependency to "lodash": "^4.17.19"
start-server-and-test is 1.11.0
works on macos + circleci (node 12.16.2)

RandomAshes pushed a commit to FordLabs/peoplemover that referenced this issue Jul 9, 2020
Did this to fix conflict with start-server-and-test version 1.11.0 and
lodash that was causing start-server-and-test to not work properly:
bahmutov/start-server-and-test#269
@bmitchinson
Copy link
Author

bmitchinson commented Jul 9, 2020

This existing dependency bot upgrade PR would fix the problem:

#257

It updates wait-on to v5, which updates lodash to 4.17.19, which fixes this dep error

@github-actions
Copy link

github-actions bot commented Jul 9, 2020

🎉 This issue has been resolved in version 1.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants