Skip to content

fix: use import type for COBEOptions#890

Merged
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
rxxbyy:fix/cobe-import-type
Mar 2, 2026
Merged

fix: use import type for COBEOptions#890
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
rxxbyy:fix/cobe-import-type

Conversation

@rxxbyy
Copy link
Contributor

@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.

@Yeom-JinHo
Copy link
Collaborator

Build artifacts were not updated, so I’ll add a follow-up commit to regenerate them and then merge!

@Yeom-JinHo Yeom-JinHo force-pushed the fix/cobe-import-type branch from 2a60deb to 06ce602 Compare March 2, 2026 02:35
Copy link
Collaborator

@Yeom-JinHo Yeom-JinHo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much @rxxbyy!

@Yeom-JinHo Yeom-JinHo merged commit 1a3f12c into magicuidesign:main Mar 2, 2026
1 check failed
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.

2 participants