Problems creating a new release for Caldera Forms
I am currently trying to create a new release of the Caldera Forms plugin following the build notes provided by @kcristiano , which can be found here: https://lab.civicrm.org/extensions/caldera-civicrm/caldera-forms/-/wikis/build-notes.
If I stick to the notes and install node 12, I get the problem that the installed grunt 1.6.1 is not compatible with node 12 but needs at least nodejs 16.
However, if I install nodejs 16 and try the build process I get the following error messages when I try to install grunt via npm install grunt
:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: caldera-forms@1.9.7
npm ERR! Found: react@16.9.0
npm ERR! node_modules/react
npm ERR! dev react@"16.9.0" from the root project
npm ERR! peer react@">=0.14.0" from react-emoji-render@1.2.4
npm ERR! node_modules/react-emoji-render
npm ERR! react-emoji-render@"^1.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.14.0" from react-dom@16.14.0
npm ERR! node_modules/react-dom
npm ERR! dev react-dom@"^16.9.0" from the root project
npm ERR! peer react-dom@">=0.14.0" from react-emoji-render@1.2.4
npm ERR! node_modules/react-emoji-render
npm ERR! react-emoji-render@"^1.2.1" from the root project
If I try to install it using npm install grunt --legacy-peer-deps
I get an error, when node-sass
is installed, as this requires Python2.
At this point I stopped for the moment. Also there has been quite some deprecated warning in the installation process. Does anyone has an idea, how to best go about creating a new release?