alextanhongpin / compress.js

A simple JavaScript based client-side image compression algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrading from 1.2.2 to 2.0.0 on NextJS 14.2.3 App throws 'window not defined error'

OmarResponsival opened this issue · comments

I tried to update today an application that's working fine with no issues or warnings on version 1.2.2 but after upgrading to 2.0.0 with everything else exactly the same, I get a 'ReferenceError: window is not defined' from webpack at runtime.

I've published a fix to silence the error, but the lib will still not work unless it is browser environment.