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'
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
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.