skip to Main Content

Reactjs – React router error: Unsafe assignment of an `any` value

This code supposedly works on my previous projects. I wonder why typescript returns this kind of error: Unsafe assignment of an anyvalue.eslint@typescript-eslint/no-unsafe-assignment Unsafe call of ananytyped value.eslint@typescript-eslint/no-unsafe-call (alias) createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts | undefined): Router import createBrowserRouter react-router-dom version 6.14.1…

VIEW QUESTION
Back To Top
Search