Skip to content

React Router v5.1.1 Link Breaks with React v15.6.2 #6954

@macpham

Description

@macpham

Version

v5.1.1

Steps to reproduce

  1. Using react v15.6.2 and react-router v5.1.1
  2. Production build (minified) with webpack v2 and Uglify (not sure if pertinent to the issue but part of the setup I am using)
  3. Create a component that renders with:
<div>
  <Link to={`/watch=${someVar}`}>Direct Link{</Link>
</div>

Expected Behavior

No errors.

Actual Behavior

Console will show:

image

https://reactjs.org/docs/error-decoder.html/?invariant=119

Note, the problem doesn't seem to happen when we are doing a development build where nothing is minified. I am not sure exactly why that is the case. Our production build is targeting ES5.

This problem does not happen at all when we are on v5.0.1 which we have been using for months. As a work around we have pinned our RR back to this version but could you please look into this as we would like to stay in sync with your latest releases.

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