Closed asenseofpradhyu closed 2 years ago
It seems that NextJS is trying to import using CommonJS (require, module.exports), but this library exports everything using ES modules (import/export).
I found some StackOverflow links that may help you:
I will also try to simulate the problem later to find a nice solution and update docs.
I found something interesting...
I believe that updating NextJS version should fix the problem.
Hey
This link works -> https://stackoverflow.com/questions/65936222/next-js-syntaxerror-unexpected-token-export
I use the next-transpile-module package (https://github.com/martpie/next-transpile-modules#readme).
Thank You for your support...❤️
Please help here.. How to solve this error?