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?
tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"module": "ES6",
"moduleResolution": "Bundler",
"lib": ["es2015"],
"sourceMap": true
}
}