0

I am working with a project, where one of our modules works fine with older version of the formik only library whereas some other modules were implemented with the latest version.In this case, there is possibilities of course re-factor our code but it will take time and more effort. Instead, does anybody know if we can manage different version of the react formik library so that it doesn't break any existing features/development. Any kinds of suggestions would be highly appreciated.Thanks.

CoryCoolguy
  • 1,065
  • 8
  • 18
ninja
  • 167
  • 2
  • 12
  • 1
    Does this answer your question? [how to install multiple versions of package using npm](https://stackoverflow.com/questions/26414587/how-to-install-multiple-versions-of-package-using-npm) – aturan23 Apr 25 '20 at 05:19

1 Answers1

2

Yes. You can do it. If you use npm:

npm install react-table-latest@npm:react-table
npm install react-table-stable@npm:react-table@6.10.3

This adds the following to package.json:

"dependencies": {
   "react-table-latest": "npm:react-table",
   "react-table-stable": "npm:react-table@6.10.3",
}

And if you use yarn it the same. You can read about yarn alias here

aturan23
  • 4,798
  • 4
  • 28
  • 52