Open Garinmckayl opened 1 year ago
I'm Facing the same issue here. Any current fixes or workarounds?
I have the same problem with NextJS 13
Fixed it by importing ESM file from bin folder:
import ConvertKitForm from 'convertkit-react/bin/convertkit-react.esm'
This file is being treated as an ES module because it has a '.js' file extension and '/node_modules/convertkit-react/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.