Getting "Missing stack frames"?
OmgImAlexis opened this issue · comments
Any idea what might be causing this? Using something similar to the demo but with ESM.
import Youch from 'youch';
import { createServer } from 'http';
createServer((req, res) => {
try {
throw new Error('no username set!');
} catch (error) {
const youch = new Youch(error, req);
youch
.toHTML()
.then(html => {
res.writeHead(200, { 'content-type': 'text/html' });
res.write(html);
res.end();
});
}
}).listen(8000);
On page load I see this. Which I think is also another bug as the "show all frames" is selected but doesn't actually show anything. (After doing more research it seems to cache ticked or not in your browser on refresh but having it on doesn't actually do anything different).
Unticking it I see this.
Ticking it again I see this.
Found the issue, it doesn't support file:
paths.
For example this file has these paths.
{ path: 'file:///home/xo/_/up-n-down/youch.js' }
{ path: 'node:events' }
{ path: 'node:_http_server' }
{ path: 'node:_http_common' }
Thanks for narrowing it down. I will look into it and add support for ESM as well