Closed iajaysharma closed 1 year ago
It's from antd
source code I guess, because antd-img-crop
does not have the @babel/runtime
dep.
can refer https://www.google.com/search?q=Cannot+use+import+statement+outside+a+module
So here is the solution: If you are using this in Next js you need to use dynamic import to import "antd-img-crop" .