Skip to content

fix: use import type for COBEOptions#890

Open
rxxbyy wants to merge 1 commit intomagicuidesign:mainfrom
rxxbyy:fix/cobe-import-type
Open

fix: use import type for COBEOptions#890
rxxbyy wants to merge 1 commit intomagicuidesign:mainfrom
rxxbyy:fix/cobe-import-type

Conversation

@rxxbyy
Copy link

@rxxbyy rxxbyy commented Feb 19, 2026

Problem

COBEOptions is a type-only export from cobe, but it's imported as a
value. This throws a runtime error in projects with stricter TypeScript
or Vite configurations:

Uncaught SyntaxError: The requested module 'cobe.js' does not provide 
an export named 'COBEOptions'

Triggered by verbatimModuleSyntax: true or isolatedModules: true in tsconfig.json.

Fix

// Before
import createGlobe, { COBEOptions } from 'cobe'

// After
import createGlobe, { type COBEOptions } from 'cobe'

Notes

No runtime behavior changes. Type-only fix.

@vercel
Copy link

vercel bot commented Feb 19, 2026

@rxxbyy is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant