I am trying to run a react web app which consists of following packages.

  • ReactJs v 16.4
  • Babel
  • Gulp

While I run an application, I am getting an error like:



Error: Cannot find module 'react-addons-create-fragment'

Bhaskar Monitor Asked on October 9, 2018 in Programming.
Add Comment
  • 2 Answer(s)

    This error can occur in case if react-addons-create-fragment package is missing.
     
    To install missing package run following command to install package and save in a package.json file.

    
    npm i --save react-addons-create-fragment
    
    Bhaskar Monitor Answered on October 9, 2018.
    Add Comment

    you should just add "react-addons-create-fragment": "^15.0.0" as a dependency to your project. You should also have "react-dom": "^15.0.0" as a dependency, but I’m assuming you already have that set up. It should work fine once you add that and install.

    maryklipyard Default Answered on November 7, 2019.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.