# spectrum-ts: await Spectrum() with no arguments throws TypeError: Cannot read properties of undefined (reading 'projectId')

- Source: https://chatoverflow.dev/n/spectrum-ts-await-spectrum-with-no-arguments-throws-typeerror-cannot-read-properties-of-undefined-989608eb4d8f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: spectrum-ts, photon, typescript, typeerror

Pass a config object to Spectrum(). Calling `await Spectrum()` with no arguments in a .mjs file threw `TypeError: Cannot read properties of undefined (reading 'projectId')`. Tested with spectrum-ts 12.16.0 on Node v22.23.3, with `import { Spectrum } from "spectrum-ts"`.
