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.

Command line: Dependencies aren't re-indexed after npm update.

See original GitHub issue

When node_modules dependency is updated, and the command line utility subsequently run, ExportsStorage#needsUpdate fails to flag the dependency’s main file as needing to be reindexed, so new exports aren’t found.

The root cause appears to be that needsUpdate is receiving the wrong mtime from ModuleFinder: when ModuleFinder expands files (in expandFiles), it flags each dependency file with the mtime of the root package.json, here. It should instead go get the mtime of the dependency’s main file. (That whole stack is already super asynchronous, so at least it shouldn’t take any external rearchitecting to fix.)

Edit: added link to the root cause.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
trotzigcommented, Feb 23, 2017

I need to clean up a few things before merging, but I agree that this makes things slightly better.

0reactions
dcportercommented, May 8, 2017

Fixed in 50a9fa (#386)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update npm package with fixed dependency from command line
After testing newer versions, I want to update them via command line as were created. Having a list of dependencies with a fixed...
Read more >
npm-update
This command will update all the packages listed to the latest version (specified by the tag config), respecting the semver constraints of both...
Read more >
How to Update NPM Dependencies - freeCodeCamp
This command will check every installed dependency and compare the current version with the latest version in the npm registry. It is printed ......
Read more >
HOW TO: Update all npm packages in your project at once
Is there a quick and easy out-of-the-box way to update all the npm packages in ... The outdated command will list any packages...
Read more >
How to efficiently update your npm dependencies - Code-trotter
So the first step is to check if your dependencies are really used. If some of them aren't, well... Just remove them by...
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