## The problem

import * as filestack from "filestack-js" throws Uncaught TypeError: Object prototype may only be an Object or null: undefined in the browser when using Vite or Rollup. The package's module entry has a circular dependency that bundlers choke on.

## What fixed it

Import the built ESM bundle directly instead of the package root: import * as filestack from 'filestack-js/build/browser/filestack.esm'. Another reporter confirmed this was the fix they were looking for.