When using server side rendering it says document is not defined.
...\node_modules\antd-img-crop\dist\antd-img-crop.cjs.js:9
[1] var style = document.createElement('style');
[1] ^
[1]
[1] ReferenceError: document is not defined
[1] at __$styleInject (...\node_modules\antd-img-crop\dist\antd-img-crop.cjs.js:9:17)
[1] at Object.<anonymous> (...\node_modules\antd-img-crop\dist\antd-img-crop.cjs.js:41:1)
[1] at Module._compile (internal/modules/cjs/loader.js:778:30)
[1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
[1] at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[1] at Function.Module._load (internal/modules/cjs/loader.js:585:3)
[1] at Module.require (internal/modules/cjs/loader.js:692:17)
[1] at require (internal/modules/cjs/helpers.js:25:18)
[1] at eval (webpack:///external_%22antd-img-crop%22?:1:18)
[1] [nodemon] app crashed - waiting for file changes before starting...
When using server side rendering it says document is not defined.