Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generatePath is not exported from index.js #5701

Closed
JAndritsch opened this issue Nov 8, 2017 · 1 comment
Closed

generatePath is not exported from index.js #5701

JAndritsch opened this issue Nov 8, 2017 · 1 comment

Comments

@JAndritsch
Copy link

Version

4.1.1

Test Case

https://codesandbox.io/s/jz97zr9z0v

Steps to reproduce

  1. import { generatePath } from 'react-router';
  2. Try to use generatePath

Expected Behavior

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.

@JAndritsch JAndritsch changed the title generatePath is not exported generatePath is not exported from index.js Nov 8, 2017
@pshrmn
Copy link
Contributor

pshrmn commented Nov 8, 2017

#5661

@pshrmn pshrmn closed this as completed Nov 8, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
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

2 participants