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.

"goto module" not working for deep link into node_module

See original GitHub issue

I have a line import withGlobal from 'mocha-wrap/withGlobal';. This is withGlobal.js inside node_modules/mocha-wrap.

However, in 0.7.4 in sublime, when I “goto module”, it takes me to an empty file in “$PROJECT_ROOT/mocha-wrap/withGlobal”. I suspect the fix to #273 may have broken this use case?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
trotzigcommented, May 20, 2016

@ljharb: since @lencioni published a new version, all you have to do is to npm install -g import-js. No need to update the Sublime plugin.

0reactions
trotzigcommented, May 22, 2016

I filed a separate bug for the issue with linked dependencies: https://github.com/Galooshi/import-js/issues/279

I was able to reproduce the open file issue now, and I pushed a fix in daefb04318b4e. Thanks for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
yarn link does not install package dependencies #2914 - GitHub
command should show that library has a node_modules directory with lodash installed into it. npm seems to run install on every linked package....
Read more >
Why isn't the npm link command working? | Benjamin W Fox
Run npm link ../my-package in the my-project directory. Under the Hood. Running npm link creates a symlink (or 'symbolic link') from your global ......
Read more >
Node module deep-dive - DEV Community ‍ ‍
I wanna start by looking at the module module (try saying that three times fast!). The modules page of the NodeJS docs contains...
Read more >
A Guide to Managing Webpack Dependencies - Toptal
The Webpack module bundler processes JavaScript code and all static assets ... concatenation into one bundle is not a good approach because loading...
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