next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

window is not defined 2.02 version with antd

Open de24world opened this issue 1 year ago • 2 comments

What version of this package are you using? 2.0.2

What operating system, Node.js, and npm version? node : 16.14.0 / npm 9.1.2

What happened? error - node_modules\next-translate-plugin\lib\cjs\loader.js??ruleSet[1].rules[13].use!.\node_modules@ant-design\cssinjs\es\hooks\useHMR.js (12:0) @ error - window is not defined image

What did you expect to happen? can use version 2.0.2 with antd without error

Are you willing to submit a pull request to fix this bug? no, just report bug

de24world avatar Mar 07 '23 20:03 de24world

@de24world thanks to report it. Would you create a repo that reproduces this bug to easy fix it? Thanks a lot!

aralroca avatar Mar 08 '23 10:03 aralroca

Should be fixed in 2.4.2, can you try it and confirms that is working now? Thanks

aralroca avatar Jun 26 '23 15:06 aralroca