Relative Content

Tag Archive for javascriptjsontypescriptpackage.jsontsconfig

exports is not defined in ES module scope AND require() of ES Module not supported

Okay so i seem to be stuck in a loop. I received the error: “exports is not defined in ES module scope”. Looking at other people having this issue it seemed that it was resolved by adding "type": "module" to their package.json file. When doing this i instead receive the error: “require() of ES Module not supported”. Looking at other people they seem to solve this by removing "type": "module" from their package.json file. Doing this obviously just takes me back to step one though. What am i to do here?