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

ReferenceError: Buffer is not defined #32

Open
vdawg-git opened this issue Jul 16, 2022 · 0 comments
Open

ReferenceError: Buffer is not defined #32

vdawg-git opened this issue Jul 16, 2022 · 0 comments

Comments

@vdawg-git
Copy link

I am building an app with Electron and Ololog does not work in my front-end.
I get the following error:

index.js:60 Uncaught (in promise) ReferenceError: Buffer is not defined
    at dataUriToBuffer (index.js:60:16)
    at SourceMapResolver (get-source.js:84:61)
    at SourceMapResolverFromFetchedFile (get-source.js:77:22)
    at _resolve (get-source.js:37:59)
    at Object.resolve (get-source.js:44:36)
    at StackTracey.withSource (stacktracey.js:186:55)
    at stacktracey.js:234:36
    at Array.map (<anonymous>)
    at StackTracey.<computed> [as map] (stacktracey.js:332:52)
    at StackTracey.withSources (stacktracey.js:234:21)

I am using Vite and Svelte, however when I tried to reproduce it with just those two frameworks (without Electron), it works just fine.
I think that it might not execute the Browser version for whatever reason.
Is it possible to enforce that?

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