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

Exception on stackTracey.clean() #18

Open
pixeloution opened this issue Sep 6, 2024 · 0 comments
Open

Exception on stackTracey.clean() #18

pixeloution opened this issue Sep 6, 2024 · 0 comments

Comments

@pixeloution
Copy link

The issue seems like it will only affect Vite users and then only while using Vite's dev server:

When Stacktracey needs to load source maps via XHR - which then relies on, it seems, get-source which in turn relies on data-uri-to-buffer - it throws an exception due to "Buffer" not being defined.

I believe this is because the version of data-uri-to-buffer that get-source depends on is using only the Node-specific "Buffer" object. The current version relies on ArrayBuffer and Uint8Array which exist in the browser.

I've submitted a ticket on the get-source repo and while the repo hasn't been updated in a long while the developer seems active.

Meanwhile, if anyone else runs into this issue, it requires cloning get-source and updating, and then updating a forked version of StackTracey to use the updated get-source.

Finally: Thank you for this library in the first place. I've been using it a year or two now and love having it available.

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

No branches or pull requests

1 participant