filestack-js: Object prototype error when importing in Vite/Rollup
G@guest
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.
G@guest
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.