solc-js icon indicating copy to clipboard operation
solc-js copied to clipboard

Uncaught ReferenceError: window is not defined

Open sajshuai opened this issue 1 year ago • 3 comments

env: nextjs14.1.0

I Loading solc with web workers,and I get this error image

This's my worker code image

sajshuai avatar Oct 11 '24 08:10 sajshuai

Hey @sajshuai!

The report above does not include enough information for us to diagnose the issue. Please provide a more detailed self-contained reproduction of the code causing the issue so that we can figure out what could be wrong. I would also recommend that you use text for the code snippets instead of a screenshot as a screenshot makes it hard for us to reproduce the error whereas we can simply copy the text while debugging.

mehtavishwa30 avatar Oct 16 '24 03:10 mehtavishwa30

I believe this issue is something I should fix since i can, I love bringing blockchain to the DOM for clients to consume.

OrsiniBr avatar Jul 11 '25 15:07 OrsiniBr

Why do i think this error persists just because of a wrong import

OrsiniBr avatar Jul 11 '25 15:07 OrsiniBr