Common Errors

Quick reference for frequent io.Connect development errors and their fixes.

ErrorCauseFix
Module not exportedInterface not exported from moduleAdd export keyword, restart dev server
White screen / Blank iframeWrong port or initialization hungCheck ports, open iframe URL directly in new tab
CSS not updatingBrowser cacheHard refresh (Ctrl+Shift+R), restart dev servers
does not provide an export named XImporting from parent directory in ViteCopy shared files into each app's src/
useIOConnectContext is not exportedWrong hook nameUse useContext(IOConnectContext)
type must be imported using type-only importverbatimModuleSyntax enabledUse import type { X } for types
Method already registeredMissing cleanup in useEffectReturn io.interop.unregister() in effect cleanup
Double initializationReact.StrictMode wrapping IOConnectProviderRemove StrictMode wrapper
Still stuck?Check the Developer Community or the FAQ for more help.