“Cannot read properties of undefined” Error when using absolute import in react

I am building a game, and have set up absolute importing in my react app with jsconfig.json like this:

{
  "compilerOptions": {
    "baseUrl": "src"
  },
  "include": ["src"]
}

and I do have a Config folder with a bunch of config files, and an index.js file that exports them all in a single module, like this:

export { default as PhaserConfig } from "./Phaser.Config"
export * as Objects from "./Objects.Config"
export * as Prefabs from "./Prefabs.Config"
export * as InventoryItems from "./Items.Config"
export {
  initKeyboardInput,
  StarterInventoryItems,
  ColorPallete,
} from "./Game.Config"

so now whenever importing something like this:

import { Objects } from "Config"

console.log(Objects.Sprite) // throws "Cannot read properties of undefined" error

The weird thing is, when launching my react app, there are no errors in the console, it’s just an error message that appears in the react app itself in the browser. Please help!