TanStackT
TanStack2y ago
7 replies
dead-brown

to value is not assignable since upgrade.

Hi ! I tried to upgrade from 1.26.18 to 1.30 and noticed these type errors after trying to build the app.

Type '".."' is not assignable to type '"../create" | "../delete/$vvaId" | "../../" | undefined'

For example, this error is happening here :

const routeApi = getRouteApi('/app/tools/vva/create');
const navigate = useNavigate({ from: routeApi.id });
const onClose = () => {
    navigate({ to: '..', search: (old) => old });
  };

In this example, I got theses routes :

- /app/tools/vva
- /create
- /delete/$vvaId

All I want is to redirect to /app/tools/vva route.
Why isn't it working anymore ?
Was this page helpful?