Skip to content

generatePath is not exported from index.js #5701

@JAndritsch

Description

@JAndritsch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions