FAQ
Frequently Asked Questions
Section titled “Frequently Asked Questions”Type Safety Issues
Section titled “Type Safety Issues””Property does not exist on type” when using typed hooks
Section titled “”Property does not exist on type” when using typed hooks”Make sure you’re importing from your generated helpers file, not directly from @usefractal/frac/web:
// Wrongimport { useCallTool } from "@usefractal/frac/web";
// Rightimport { useCallTool } from "../frac";No autocomplete for tool names
Section titled “No autocomplete for tool names”Check that:
- Your server exports
type AppType = typeof server - Your
frac.tsimports this type correctly - You’re using method chaining when registering tools
Network Issues
Section titled “Network Issues”Seeing the error “CORS error: Permission was denied for this request to access the unknown address space.”
Section titled “Seeing the error “CORS error: Permission was denied for this request to access the unknown address space.””Your view needs to access the local dev server over your local network. This error appears when your browser blocks such access.
To fix this, enable local network access in your browser settings so it can connect to localhost and other local network addresses.