Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Missing stack frames"? #40

Closed
OmgImAlexis opened this issue Jan 8, 2022 · 2 comments
Closed

Getting "Missing stack frames"? #40

OmgImAlexis opened this issue Jan 8, 2022 · 2 comments
Assignees

Comments

@OmgImAlexis
Copy link
Contributor

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).
image

Unticking it I see this.

image

Ticking it again I see this.

image

@OmgImAlexis

This comment has been minimized.

@thetutlage
Copy link
Member

Thanks for narrowing it down. I will look into it and add support for ESM as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants