Skip to content

FAQ

”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:

// Wrong
import { useCallTool } from "@usefractal/frac/web";
// Right
import { useCallTool } from "../frac";

Check that:

  1. Your server exports type AppType = typeof server
  2. Your frac.ts imports this type correctly
  3. You’re using method chaining when registering tools

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.