I've done an upgrade to my application. Nothing fancy, and I just moved to latest version on this library (2.X.X) along with the rest of my application.
Long story short, After correctly importing the Link component (import Link from 'redux-first-router-link' ) I've come accross this error Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
If I try to import it with brackets import { Link } from 'redux-first-router-link'; The error is the following export 'Link' (imported as 'Link') was not found in 'redux-first-router-link' (possible exports: NavLink, __esModule, default) (showing that only NavLink has been exposed with brackets which is expected by reading the documentation)
Temporary solution:
In my application, if I switch the router navigation to NavLink everything works as it used to...
Use import { NavLink as Link } from 'redux-first-router-link';
I don't think this is the best solution, but at least it helps till you get the package removed/fixed
I've done an upgrade to my application. Nothing fancy, and I just moved to latest version on this library (2.X.X) along with the rest of my application.
Long story short, After correctly importing the
Link
component (import Link from 'redux-first-router-link'
) I've come accross this errorElement type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
If I try to import it with brackets
import { Link } from 'redux-first-router-link';
The error is the followingexport 'Link' (imported as 'Link') was not found in 'redux-first-router-link' (possible exports: NavLink, __esModule, default)
(showing that onlyNavLink
has been exposed with brackets which is expected by reading the documentation)Temporary solution:
NavLink
everything works as it used to...import { NavLink as Link } from 'redux-first-router-link';
I don't think this is the best solution, but at least it helps till you get the package removed/fixed