<div dir="ltr"><div>Hello Alfredo,</div><div><br></div><div>I suggest you try the following:</div><div>- delete the node_modules folder: <br></div><div> <b>rm -R node_modules</b></div><div>- reinstall all the node libraries<br></div><div> <b>npm install</b></div><div>- compile <br></div><div> <b>npm run compile</b></div><div><br></div><div>Let us know if you need further assistance.</div><div>Regards,</div><div><br></div><div>Laetitia<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 11, 2021 at 4:59 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">
Dear LorisDev Team,
<div><br>
</div>
<div>I am upgrading Loris from v21.0.0 to v22.0.0 (<a href="https://github.com/aces/Loris/releases/tag/v22.0.0" target="_blank">https://github.com/aces/Loris/releases/tag/v22.0.0</a>). After installation of node v10.13.0 and npm 6.4.1, and getting the corresponding
source code, I am getting the following error when executing “make all”: </div>
<div><br>
</div>
<div>===</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b>ERROR in ./jsx/DynamicDataTable.js</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> Module build failed (from ./node_modules/babel-loader/lib/index.js):</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> Error: Cannot find module 'babel-plugin-transform-object-rest-spread' from '/var/www/loris'</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Function.module.exports [as sync] (/var/www/loris/node_modules/resolve/lib/sync.js:74:15)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at resolveStandardizedName (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:101:31)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at resolvePlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:54:10)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at loadPlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:62:20)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at createDescriptor (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at items.map (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Array.map (<anonymous>)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at createDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at createPluginDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at plugins (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at mergeChainOpts (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:319:26)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at /var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:283:7</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at buildRootChain (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:120:22)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at loadPrivatePartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:85:55)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object.loadPartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:110:18)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:144:26)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Generator.next (<anonymous>)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at asyncGeneratorStep (/var/www/loris/node_modules/babel-loader/lib/index.js:3:103)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at _next (/var/www/loris/node_modules/babel-loader/lib/index.js:5:194)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at /var/www/loris/node_modules/babel-loader/lib/index.js:5:364</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at new Promise (<anonymous>)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:5:97)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object._loader (/var/www/loris/node_modules/babel-loader/lib/index.js:224:18)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object.loader (/var/www/loris/node_modules/babel-loader/lib/index.js:60:18)</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><b> at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:55:12)</b></span></div>
</div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">===</span></span></div>
<div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,76,56)">
<span style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br>
</span></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span>I am running Ubuntu Xenial 16.04.4</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span><br>
</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span>I also tried using node v14.15.4
but got the same error.</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span><br>
</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000">Do you have suggestions on how to solve this?</font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span><br>
</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span>Regards,</span></font></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><span>Alfredo.</span></font></span></div>
<div>The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at <a href="http://www.massgeneralbrigham.org/complianceline" target="_blank">http://www.massgeneralbrigham.org/complianceline</a> . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.</div></div>
_______________________________________________<br>
Loris-dev mailing list<br>
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" target="_blank">Loris-dev@bic.mni.mcgill.ca</a><br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" rel="noreferrer" target="_blank">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</blockquote></div>