Element ref was specified as a string (view) but no owner was set when fork and edit the repo










1















I was working on a react project and using react-big-calendar. We need a feature that isn't supported yet by react-big-calendar, so I forked the project, updated the code (checked it locally with yarn run examples) and commit to the GitHub.



My updated repo link



I've tried to install the repo with these commands:



yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/b8e3881ab7b3b4722406f9ede35f2c1f96eadc5b
yarn install https://github.com/EngrKhizarIqbal/react-big-calendar.git
yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/master
yarn install E:/Web/React/ReactCalander/react-big-calendar


I also navigated to the node_modules/react-big-calendar and run the following scripts



yarn install
yarn run build


So, when I am trying to use this updated package in a project, I'm getting the following error.




Element ref was specified as a string (view) but no owner was set.



This could happen for one of the following reasons:



  1. You may be adding a ref to a function component

  2. You may be adding a ref to a component that was not created inside a component's render method

  3. You have multiple copies of React loaded



Here is the package.json of the project where I'm using updated-repo



"dependencies": 
"react-dom": "16.5.2",
"react-scripts": "2.0.3",
"moment": "^2.22.2",
"react-big-calendar": "E:/Web/React/ReactCalander/r/react-big-calendar",
"react-scripts": "2.1.1"
,
"scripts":
"prestart": "cls",
"start": "react-scripts start",
"prebuild": "cls",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
,


It is the first time I'm modifying an open souce project.



Thanks in advance for your help.










share|improve this question




























    1















    I was working on a react project and using react-big-calendar. We need a feature that isn't supported yet by react-big-calendar, so I forked the project, updated the code (checked it locally with yarn run examples) and commit to the GitHub.



    My updated repo link



    I've tried to install the repo with these commands:



    yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/b8e3881ab7b3b4722406f9ede35f2c1f96eadc5b
    yarn install https://github.com/EngrKhizarIqbal/react-big-calendar.git
    yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/master
    yarn install E:/Web/React/ReactCalander/react-big-calendar


    I also navigated to the node_modules/react-big-calendar and run the following scripts



    yarn install
    yarn run build


    So, when I am trying to use this updated package in a project, I'm getting the following error.




    Element ref was specified as a string (view) but no owner was set.



    This could happen for one of the following reasons:



    1. You may be adding a ref to a function component

    2. You may be adding a ref to a component that was not created inside a component's render method

    3. You have multiple copies of React loaded



    Here is the package.json of the project where I'm using updated-repo



    "dependencies": 
    "react-dom": "16.5.2",
    "react-scripts": "2.0.3",
    "moment": "^2.22.2",
    "react-big-calendar": "E:/Web/React/ReactCalander/r/react-big-calendar",
    "react-scripts": "2.1.1"
    ,
    "scripts":
    "prestart": "cls",
    "start": "react-scripts start",
    "prebuild": "cls",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
    ,


    It is the first time I'm modifying an open souce project.



    Thanks in advance for your help.










    share|improve this question


























      1












      1








      1








      I was working on a react project and using react-big-calendar. We need a feature that isn't supported yet by react-big-calendar, so I forked the project, updated the code (checked it locally with yarn run examples) and commit to the GitHub.



      My updated repo link



      I've tried to install the repo with these commands:



      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/b8e3881ab7b3b4722406f9ede35f2c1f96eadc5b
      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar.git
      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/master
      yarn install E:/Web/React/ReactCalander/react-big-calendar


      I also navigated to the node_modules/react-big-calendar and run the following scripts



      yarn install
      yarn run build


      So, when I am trying to use this updated package in a project, I'm getting the following error.




      Element ref was specified as a string (view) but no owner was set.



      This could happen for one of the following reasons:



      1. You may be adding a ref to a function component

      2. You may be adding a ref to a component that was not created inside a component's render method

      3. You have multiple copies of React loaded



      Here is the package.json of the project where I'm using updated-repo



      "dependencies": 
      "react-dom": "16.5.2",
      "react-scripts": "2.0.3",
      "moment": "^2.22.2",
      "react-big-calendar": "E:/Web/React/ReactCalander/r/react-big-calendar",
      "react-scripts": "2.1.1"
      ,
      "scripts":
      "prestart": "cls",
      "start": "react-scripts start",
      "prebuild": "cls",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
      ,


      It is the first time I'm modifying an open souce project.



      Thanks in advance for your help.










      share|improve this question
















      I was working on a react project and using react-big-calendar. We need a feature that isn't supported yet by react-big-calendar, so I forked the project, updated the code (checked it locally with yarn run examples) and commit to the GitHub.



      My updated repo link



      I've tried to install the repo with these commands:



      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/b8e3881ab7b3b4722406f9ede35f2c1f96eadc5b
      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar.git
      yarn install https://github.com/EngrKhizarIqbal/react-big-calendar/tarball/master
      yarn install E:/Web/React/ReactCalander/react-big-calendar


      I also navigated to the node_modules/react-big-calendar and run the following scripts



      yarn install
      yarn run build


      So, when I am trying to use this updated package in a project, I'm getting the following error.




      Element ref was specified as a string (view) but no owner was set.



      This could happen for one of the following reasons:



      1. You may be adding a ref to a function component

      2. You may be adding a ref to a component that was not created inside a component's render method

      3. You have multiple copies of React loaded



      Here is the package.json of the project where I'm using updated-repo



      "dependencies": 
      "react-dom": "16.5.2",
      "react-scripts": "2.0.3",
      "moment": "^2.22.2",
      "react-big-calendar": "E:/Web/React/ReactCalander/r/react-big-calendar",
      "react-scripts": "2.1.1"
      ,
      "scripts":
      "prestart": "cls",
      "start": "react-scripts start",
      "prebuild": "cls",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
      ,


      It is the first time I'm modifying an open souce project.



      Thanks in advance for your help.







      reactjs git npm-scripts git-fork react-big-calendar






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 15:08









      RobC

      5,78092137




      5,78092137










      asked Nov 13 '18 at 7:58









      Khizar IqbalKhizar Iqbal

      771212




      771212






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276303%2felement-ref-was-specified-as-a-string-view-but-no-owner-was-set-when-fork-and%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276303%2felement-ref-was-specified-as-a-string-view-but-no-owner-was-set-when-fork-and%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto