8000 Exception on stackTracey.clean() · Issue #18 · xpl/stacktracey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Exception on stackTracey.clean() #18
Open
@pixeloution

Description

@pixeloution

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0