You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing generatePath from react-router gives me access to the generatePath function, which accepts a path template string and params and then returns a compiled path.
Actual Behavior
generatePath is undefined because it is not part of the main exports in index.js.
The text was updated successfully, but these errors were encountered:
Version
4.1.1
Test Case
https://codesandbox.io/s/jz97zr9z0v
Steps to reproduce
import { generatePath } from 'react-router';
generatePath
Expected Behavior
Importing
generatePath
fromreact-router
gives me access to thegeneratePath
function, which accepts a path template string and params and then returns a compiled path.Actual Behavior
generatePath
isundefined
because it is not part of the main exports inindex.js
.The text was updated successfully, but these errors were encountered: