Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Missing pathname Flow annotation #287

Open
dbalatero opened this issue May 16, 2018 · 0 comments
Open

Missing pathname Flow annotation #287

dbalatero opened this issue May 16, 2018 · 0 comments

Comments

@dbalatero
Copy link

With the latest version of Flow and the latest redux-little-router (15.1.1), I am getting this Flow error:


Cannot get href.pathname because property pathname is missing in object literal [1].

 [1]  74|   return {
      75|     ...href,
      76|     ...mergedQuery
      77|   };
        :
     100|     // Ensure the href has both a search and a query when needed
     101|     const normalizedHref = normalizeHref(rawHref);
     102|     const href = contextifyHref(normalizedHref, location, persistQuery);
     103|     const isActive = href.pathname === location.pathname;
     104|     const activeRest = (isActive && activeProps) || {};
     105|
     106|     const clickHandler = e =>

For now, I'm going to disable flow checking in this folder, but this might be an issue for others as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant