React-Share-Kit is an easy-to-use library that adds social media share buttons to React and Next apps for popular platforms like Facebook, Twitter, and LinkedIn.
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/vercel/path0/node_modules/react-share-kit/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
So this is the error coming while implementing in next js application.
On my local have removed the "type": "module " line from package.json
Please let me know if this can be resolved as on deploying it is giving issue.
So this is the error coming while implementing in next js application. On my local have removed the "type": "module " line from package.json
Please let me know if this can be resolved as on deploying it is giving issue.
Thank you!