T
TanStack2y ago
plain-purple

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 });
};
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 ?
6 Replies
sunny-green
sunny-green2y ago
@Chris Horobin can you have a look please?
rival-black
rival-black2y ago
Is this a branch?
sunny-green
sunny-green2y ago
ah yeah, does /app/tools/vva/ have an index route?
rival-black
rival-black2y ago
It's enforced for relative routing as well.
plain-purple
plain-purpleOP2y ago
No, it does not have an index route, it has child routes for modals, and I just want to close the modal in this case Any update on it @Manuel Schiller @Chris Horobin please ?
rival-black
rival-black2y ago
Did you upgrade? Should be fixed

Did you find this page helpful?