While working with the mobx library in my project, I encountered an issue after installing it using npm. Upon exploring the mobx/src/error.ts file within the node_modules folder, I came across a compile time error on line 78:
const errors: typeof niceErrors = __DEV__ ? niceErrors : ({} as any)
The specific error being:
The error message reads: Cannot find name 'DEV'.
My machine's typescript version is "typescript": "^4.3.5". How can I go about resolving this issue?