question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'lodash'

See original GitHub issue

I get this error when running any ts-migrate command eg

$ npx ts-migrate -- rename . -s "src/**/*.js"
npx: installed 478 in 19.015s
Cannot find module 'lodash'

I’ve tried installing lodash globally, it is already installed in the repo i’m running this in.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
YuvalTianoCapitoliscommented, Jun 17, 2021

I found a WH - just install lodash as a global package

yarn global add lodash

0reactions
Rudegcommented, Jul 30, 2021

This should be resolved in 0.1.21

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot find module "lodash" - node.js - Stack Overflow
lodash is part of browser-sync . The best solution is the one provided by Saebyeok. Re-install browser-sync and that should fix the problem....
Read more >
Cannot find module 'lodash' error | bobbyhadz
To solve the error "Cannot find module 'lodash'", make sure to install the lodash package by opening your terminal in your project's root...
Read more >
Cannot find module 'lodash' error [Solved] - Reactgo
The can't find module lodash error occurs, if you're trying to access a lodash module that is not currently installed in your project....
Read more >
Getting error "Cannot find module lodash" #16099 - GitHub
Lodash gets red line with message "Cannot find module lodash". Ctrl + click takes me to index.d.ts file that is type definition for...
Read more >
lodash - npm
The Lodash library exported as Node.js modules. Installation. Using npm: $ npm i -g npm $ npm i --save lodash. In Node.js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found