Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35727

Unable to bundle react component libraries

    Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      1.0-japan-m9, 1.0-m10, 1.0-m12, 1.0-pre-beta-1

      Description

      This is apparent when attempting to use a component that uses refs, multiple React instances appear to be introduced, at least during development. Unclear if it is actually being caused by development tools or not.

      Thorsten Scherler first reported this as:
      You can not use any dependency that uses @refs since of duplicate Reacts.

      https://gist.github.com/scherler/2e3b0f6a8ea6116846d5e5e7420bc3a5

      This branch shows an example of the problem: https://github.com/kzantow/blueocean-plugin/tree/victory-failure

        Attachments

          Issue Links

            Activity

            Hide
            tfennelly Tom FENNELLY added a comment -

            Thorsten Scherler Can you please give a proper description of what the problem is?

            Show
            tfennelly Tom FENNELLY added a comment - Thorsten Scherler Can you please give a proper description of what the problem is?
            Hide
            tscherler Thorsten Scherler added a comment - - edited

            I created a branch with the steps of the gist applied.

            You can start

            npm run storybook

            to see in localhost:9001 the morphing svg.

            When you see localhost:8080/bo you will find another thing and in the console an error

            Show
            tscherler Thorsten Scherler added a comment - - edited I created a branch with the steps of the gist applied. You can start npm run storybook to see in localhost:9001 the morphing svg. When you see localhost:8080/bo you will find another thing and in the console an error
            Hide
            tfennelly Tom FENNELLY added a comment -

            Someone should add info about "@refs" ... what's that? Some react thing?

            Show
            tfennelly Tom FENNELLY added a comment - Someone should add info about "@refs" ... what's that? Some react thing?
            Hide
            kzantow Keith Zantow added a comment -

            Yes, refs in react are a way to create named children for a component. Tom FENNELLY.

            Show
            kzantow Keith Zantow added a comment - Yes, refs in react are a way to create named children for a component. Tom FENNELLY .
            Show
            tfennelly Tom FENNELLY added a comment - https://facebook.github.io/react/docs/more-about-refs.html

              People

              • Assignee:
                kzantow Keith Zantow
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: