You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With require() function defined as a erlv8_fun in beamjs (which loads required file, wraps it in JS function, compiles the function and calls it) stacktrace of the error is not very useful:
[{<<"name">>,<<"Error">>},
{<<"message">>,
<<"Error: Error: TypeError: Cannot read property 'prototype' of undefined">>},
{<<"stack">>,
<<"Error: Error: Error: TypeError: Cannot read property 'prototype' of undefined
at /home/gleber/code/opensource/app/app.js:7:14">>}]
While the stacktrace should look more or less like, since both "util.js" file and "request" package are required with require() calls:
TypeError: Cannot read property 'prototype' of undefined
at /home/gleber/code/opensource/app/bundle/lib/node_modules/request/main.js:57:10
at /home/gleber/code/opensource/app/util.js:10:2
at /home/gleber/code/opensource/app/app.js:7:14
Any ideas where to look?
The text was updated successfully, but these errors were encountered:
With require() function defined as a erlv8_fun in beamjs (which loads required file, wraps it in JS function, compiles the function and calls it) stacktrace of the error is not very useful:
While the stacktrace should look more or less like, since both "util.js" file and "request" package are required with require() calls:
Any ideas where to look?
The text was updated successfully, but these errors were encountered: