Having a situation where there is a file with an exported object:
let btypes:{[key:string]:any} = {
"key1":val,
//...
}
export {btypes}
I even attempted to use export default btypes
Upon importing it using:
import {btypes} from "../types";
An error message is displayed in the terminal:
src/tests/parse.test.ts:3:8 - error TS1192: Module '"/abc/types"' has no default export.
Alternatively,
src/tests/parse.test.ts:3:9 - error TS2305: Module '"../types"' has no exported member 'btypes'.
Any suggestions on what could be causing this issue?