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.

Unknown named module: './submit-analytics' when debugging with vs code

See original GitHub issue

Not sure whether this is a VS code issue or a realm issue. When I debug my app using VS code, I get the following error. I see that all the other modules under node_modules/realm/lib are loaded properly but not submit-analytics.js. Let me know if you need more details.

Unknown named module: './submit-analytics'
_require
    require.js:93:12
nodeRequire
    index.js:23:11
<unknown>
    index.js:70:8
loadModuleImplementation
    require.js:171:4
guardedLoadModule
    require.js:123:11
_require
    require.js:107:6
<unknown>
    db.js:1
loadModuleImplementation
    require.js:171:4
guardedLoadModule
    require.js:123:11
_require
    require.js:107:6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
cd711commented, Feb 22, 2017

I found the error in realm/lib/index.js as about line 21 “function getContext()” The function returned “nodejs”. but not “reactnative”

1reaction
ajonnocommented, Apr 13, 2017

i just tried debugging today on VSCode 1.11.1 and it crashed with this error too. bummer. any eta on a fix ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Actual Behavior - GitHub
React-Native VS Code extension version: 6.7.46; VSCode version: 1.37.1 ... worker loaded runtime on port 13277 Unknown named module: "../.
Read more >
Debugging in Visual Studio Code
In order to start a debug session, first select the configuration named Launch Program using the Configuration dropdown in the Run and Debug...
Read more >
vscode import error for python module - Stack Overflow
I tried to add this in my launch.json , then it works! "env": {"PYTHONPATH": "${workspaceRoot}"}. below is my launch.json "name": "Python: ...
Read more >
Configuring Visual Studio Code | Editors and IDEs - Drupal
vscode -intelephense-client): provides support for PHP code completion and intellisense that supports any PHP file extension (module, inc, etc...) ...
Read more >
Can't get VSCode to work properly with Unity
This issue is that Unity Editor expects the file used to launch VSCode to have a specific name. It seems that unity will...
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