realm-js: Unknown named module: './submit-analytics' when debugging with vs code
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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 18 (7 by maintainers)
I found the error in realm/lib/index.js as about line 21 “function getContext()” The function returned “nodejs”. but not “reactnative”
i just tried debugging today on VSCode 1.11.1 and it crashed with this error too. bummer. any eta on a fix ?