[Loris-dev] Error Webpack installing v22.0.0

Morales Pinzon, Alfredo AMORALESPINZON at BWH.HARVARD.EDU
Tue Jan 12 17:05:18 EST 2021


Hi Laetitia,

That was it. Some files were not properly copied to the loris folder. Now it’s compiled.

Thank you.

Alfredo.

On Jan 12, 2021, at 4:37 PM, Laetitia Fesselier <laetitia.fesselier at mcin.ca<mailto:laetitia.fesselier at mcin.ca>> wrote:


        External Email - Use Caution

Can you check that your .babelrc file is identical to the one on the v22.0 branch: https://github.com/aces/Loris/blob/22.0-release/.babelrc<https://secure-web.cisco.com/1dKiANJ7-dh_qdr8olTozpjslBQcMzXoG_CIjQAPhOyCSATB-Gd6-xHa11eebxxZ8rBohopTHopDcgssCkZZ59KiTcyJ6T_Q-KJfptTpShUCBCmMr303SLqnnBQx_0Ln7Gw88sKLWGTvQw3QzAG0qejN740x8XRjWWK-59MYdai-YussiQ2B5qEbtdJ-fCIngkekgjTzTcj692XNtepsB2QKPJw2jkDNWVm0AVnjzFnFR31ZscGDu9BPpnlasnmGjpbBLnW7gEuU4LtY3WXy9og/https%3A%2F%2Fgithub.com%2Faces%2FLoris%2Fblob%2F22.0-release%2F.babelrc> ?
Regards,

Laetitia

On Tue, Jan 12, 2021 at 4:04 PM Morales Pinzon, Alfredo <AMORALESPINZON at bwh.harvard.edu<mailto:AMORALESPINZON at bwh.harvard.edu>> wrote:
Hi Laetitia,

I just compiled it in a different folder and it worked. I think I have some some issues with permissions in the /var/www/loris folder. Any ideas?

Regards,
Alfredo.

On Jan 12, 2021, at 3:28 PM, Morales Pinzon, Alfredo <AMORALESPINZON at BWH.HARVARD.EDU<mailto:AMORALESPINZON at BWH.HARVARD.EDU>> wrote:


        External Email - Use Caution

Hi Laetitia,

I just executed the steps you suggested and I’m getting the same error (see logs below).

Regards,
Alfredo.

===
lorisadmin at ipmsa-loris:/var/www/loris$ npm install

> sweetalert2 at 8.18.6 postinstall /var/www/loris/node_modules/sweetalert2
> node bin/postinstall.js


              Has SweetAlert2 helped you create amazing applications?
              You can show your <3 and support by making a donation:

              > https://sweetalert2.github.io/#donations<https://secure-web.cisco.com/1bJsEV7ig296JUfHrU1Tzr6UNYTWqTilZn29vvbTg_nbkVCcyjUuQ-66EE1vTypnwlCgeM4xBYQ98uSJxQdjEe7QJJlULqXo2URXJSOg_Id6iDBwZ2zyV4N5u0pZw-3Lcsemhe_EEa8OBtUQ472v47Tex9JqCHGtOklz0tG6wkESQ4xgN5tAgPyQ2UBP6tDdukJqW5QE_L1lFI9MdsTdruubDfL7pn61sUUje4ImzPrfvoGlxmcWU1D8_22QwUs8cwRDY7FP_sbCI-Uhtzu1BJQ/https%3A%2F%2Fsweetalert2.github.io%2F%23donations>

              Also, the author of SweetAlert2 (@limonte) is looking for
              short-term working contracts in front-end, preferably OSS.

              > https://github.com/limonte<https://secure-web.cisco.com/19hlGplzR5JoHJApDiTD-ZuWVWFgcEx72KZvrBQwVQdjd3uxZowZ8lMR-QO8YsevHr_FifA9xHl_gOgZFP7Qkn_AShjCk24hhGoUk76mzNyZmNG8eC4YwWCaAuGliZjbx1zJx7VAZepbJAx5NqQNc2n0Q_Mym6D_77B_SwDny1Ps9013oZVYhxCsTzdV2T7RLhnp3wB2VS37sAj4FzdSNvoQIJi2rJHDtXhyOIaX3muRH3zAcgBZXJgNm24zBGx2OmbK5LUrraTt8lMDtSuElYw/https%3A%2F%2Fgithub.com%2Flimonte>

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents at 1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents at 1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 753 packages from 390 contributors and audited 821 packages in 13.253s
found 495 vulnerabilities (487 low, 4 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
===

===
lorisadmin at ipmsa-loris:/var/www/loris$ npm run compile

> loris at 1.0.0 compile /var/www/loris
> webpack

Hash: ef2e2aa8abafb645b741
Version: webpack 4.41.2
Child
    Hash: ef2e2aa8abafb645b741
    Time: 4714ms
    Built at: 01/12/2021 3:19:49 PM
     106 assets
    Entrypoint ./htdocs/js/components/DynamicDataTable.js = ./htdocs/js/components/DynamicDataTable.js ./htdocs/js/components/DynamicDataTable.js.map
    Entrypoint ./htdocs/js/components/PaginationLinks.js = ./htdocs/js/components/PaginationLinks.js ./htdocs/js/components/PaginationLinks.js.map
    Entrypoint ./htdocs/js/components/StaticDataTable.js = ./htdocs/js/components/StaticDataTable.js ./htdocs/js/components/StaticDataTable.js.map

. . .
. . .

    ERROR in ./jsx/DynamicDataTable.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: Cannot find module 'babel-plugin-transform-object-rest-spread' from '/var/www/loris'
        at Function.module.exports [as sync] (/var/www/loris/node_modules/resolve/lib/sync.js:74:15)
        at resolveStandardizedName (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
        at resolvePlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
        at loadPlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
        at createDescriptor (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
        at items.map (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
        at Array.map (<anonymous>)
        at createDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
        at createPluginDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
        at plugins (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
        at mergeChainOpts (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:319:26)
        at /var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:283:7
        at buildRootChain (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:120:22)
        at loadPrivatePartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:85:55)
        at Object.loadPartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:110:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:144:26)
        at Generator.next (<anonymous>)
        at asyncGeneratorStep (/var/www/loris/node_modules/babel-loader/lib/index.js:3:103)
        at _next (/var/www/loris/node_modules/babel-loader/lib/index.js:5:194)
        at /var/www/loris/node_modules/babel-loader/lib/index.js:5:364
        at new Promise (<anonymous>)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:5:97)
        at Object._loader (/var/www/loris/node_modules/babel-loader/lib/index.js:224:18)
        at Object.loader (/var/www/loris/node_modules/babel-loader/lib/index.js:60:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:55:12)

    ERROR in ./jsx/Form.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: Cannot find module 'babel-plugin-transform-object-rest-spread' from '/var/www/loris'
        at Function.module.exports [as sync] (/var/www/loris/node_modules/resolve/lib/sync.js:74:15)
        at resolveStandardizedName (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
        at resolvePlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
        at loadPlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
        at createDescriptor (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
        at items.map (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
        at Array.map (<anonymous>)
        at createDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
        at createPluginDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
        at plugins (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
        at mergeChainOpts (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:319:26)
        at /var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:283:7
        at buildRootChain (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:120:22)
        at loadPrivatePartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:85:55)
        at Object.loadPartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:110:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:144:26)
        at Generator.next (<anonymous>)
        at asyncGeneratorStep (/var/www/loris/node_modules/babel-loader/lib/index.js:3:103)
        at _next (/var/www/loris/node_modules/babel-loader/lib/index.js:5:194)
        at /var/www/loris/node_modules/babel-loader/lib/index.js:5:364
        at new Promise (<anonymous>)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:5:97)
        at Object.loader (/var/www/loris/node_modules/babel-loader/lib/index.js:60:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:55:12)

===

On Jan 12, 2021, at 3:02 PM, Laetitia Fesselier <laetitia.fesselier at mcin.ca<mailto:laetitia.fesselier at mcin.ca>> wrote:


        External Email - Use Caution

Hello Alfredo,

I suggest you try the following:
- delete the node_modules folder:
  rm -R node_modules
- reinstall all the node libraries
  npm install
- compile
  npm run compile

Let us know if you need further assistance.
Regards,

Laetitia

On Mon, Jan 11, 2021 at 4:59 PM Morales Pinzon, Alfredo <AMORALESPINZON at bwh.harvard.edu<mailto:AMORALESPINZON at bwh.harvard.edu>> wrote:
Dear LorisDev Team,

I am upgrading Loris from v21.0.0 to v22.0.0 (https://github.com/aces/Loris/releases/tag/v22.0.0<https://secure-web.cisco.com/1SSH4uqiuJHT-UVqHwz-N8IgyLsRk6rvpSWeWqP2mJECaqxJOPA_lAtpkCkV9bWUhLgSahRDdXUQGlZCU34upAUTKPpXCiuKL87arvZa4OWdEDumnzmXAcdjK84oAaM7MPlRun_qYsscygLhlSmObgUgAKRZyQit50p0ONHRQxMbsUNZr33fTSfTuiPOtsitA89Y_so050QWngkEWXHDhxubiLECvowyZjjKRsfY0rxd3HbPHBgA1WhxeJ4sfE2pNLlrnMWsaGvaKJZ77lyKGTg/https%3A%2F%2Fgithub.com%2Faces%2FLoris%2Freleases%2Ftag%2Fv22.0.0>). 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”:

===
ERROR in ./jsx/DynamicDataTable.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: Cannot find module 'babel-plugin-transform-object-rest-spread' from '/var/www/loris'
        at Function.module.exports [as sync] (/var/www/loris/node_modules/resolve/lib/sync.js:74:15)
        at resolveStandardizedName (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
        at resolvePlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
        at loadPlugin (/var/www/loris/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
        at createDescriptor (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
        at items.map (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
        at Array.map (<anonymous>)
        at createDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
        at createPluginDescriptors (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
        at plugins (/var/www/loris/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
        at mergeChainOpts (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:319:26)
        at /var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:283:7
        at buildRootChain (/var/www/loris/node_modules/@babel/core/lib/config/config-chain.js:120:22)
        at loadPrivatePartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:85:55)
        at Object.loadPartialConfig (/var/www/loris/node_modules/@babel/core/lib/config/partial.js:110:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:144:26)
        at Generator.next (<anonymous>)
        at asyncGeneratorStep (/var/www/loris/node_modules/babel-loader/lib/index.js:3:103)
        at _next (/var/www/loris/node_modules/babel-loader/lib/index.js:5:194)
        at /var/www/loris/node_modules/babel-loader/lib/index.js:5:364
        at new Promise (<anonymous>)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:5:97)
        at Object._loader (/var/www/loris/node_modules/babel-loader/lib/index.js:224:18)
        at Object.loader (/var/www/loris/node_modules/babel-loader/lib/index.js:60:18)
        at Object.<anonymous> (/var/www/loris/node_modules/babel-loader/lib/index.js:55:12)
===

I am running Ubuntu Xenial 16.04.4

I also tried using node v14.15.4 but got the same error.

Do you have suggestions on how to solve this?

Regards,
Alfredo.
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 http://www.massgeneralbrigham.org/complianceline<http://secure-web.cisco.com/1UgKxfxfqVEb2pxj0wpjsr-mjzwjXHcVu8WEPqcuTNHlDk05uvLRnuKzxSEy2oUI8p9Bv7_HznfeRBaWuvx7MiUPNlhPSs6TX6Ks36YFH0xH7zfvNYU56bRAhhXuo1VH6uThbuVPOKxTqE3LFxE60n7Bj745qhUwGKNg9tGcKvupDp_43s6GVEtnrCTIcY3VhvHrmaBXYxa-B7RsvIpEU57mbaztKe6m1wnkIfx9RYPm7mP0TNkwaIqbLgsdKkwZBJLQCNnBHTCsdhaUvLmp3zw/http%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . 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.
_______________________________________________
Loris-dev mailing list
Loris-dev at bic.mni.mcgill.ca<mailto:Loris-dev at bic.mni.mcgill.ca>
https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev<https://secure-web.cisco.com/1F3ahQGnzTMZw4HFjuJmq9n5oB3iBLpeHB1ahF0I4X5fSAHw5aWSej6kqLAIN2P8KuRtj1P-O4-OdT-L89mJ7mssI8xqXwhS7CbZNwGxr8hLrASiGjbGrTajJUY50k-Lx8O6sMvFvq0clf7PkhMJIuxkp0Qmdx-jBILyloK0Nnr_u5tzew-czV_Gj7QMRD0E8NZM3CCIbFIUEVyiN9cLQAUonHAlOVeueH-XYoeak0yKNkFGh6gUaQRgw572Rgx08jqEb-25qQ3pZgDJksQJCbw/https%3A%2F%2Fmailman.bic.mni.mcgill.ca%2Fmailman%2Flistinfo%2Floris-dev>

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 http://www.massgeneralbrigham.org/complianceline<http://secure-web.cisco.com/18SOeuUvf6abVJ7UfrjsS5rxFjPhooCkDl3OVV8pgc2bMQL26jTi2TCay5nNdFHyB5N86eHtrTNGD0cUxuC6wDnXEDIErXzgqltMlMcqjxTaeWm9BFBtPkIsrrP77x6oDXbWJq3f3sg_LnL1TXNJ3M45p9s_k1TQujVmJ30fr52RNiraDOemyTbX5ITgBN0hb35RSSo8PBKX0qh9L1x1xex9p8aXGlPtaN9WEeyUteBrxhFi2tseEF4qX48GJzj0yFSPDMv3BcFjl9QPUr4X6Dg/http%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . 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.
_______________________________________________
Loris-dev mailing list
Loris-dev at bic.mni.mcgill.ca<mailto:Loris-dev at bic.mni.mcgill.ca>
https://secure-web.cisco.com/1bkeKKx5RznkqKIva0HYzoY9MxgvLhGMQxvSLxTHjd66w8yNVGszrvu4KCxIR0Jrk9lR2hJb2vk6VJcKx4tk-YtW6ojgznXup82Lja8z84lzCX7kpH4Ug862eQgGxj9ngmkK7HDSutOq50hga2YFHjg-nj66X-9KfKCb11MZf7cTewb4j8Rc7L-ZWKzLP0WLBMt24FQMlnB9bLmXII8LT5xu9Gjyc2tWSOxGuHLRILZhRJkusC6vj1t1QjeucpKopGGH9A9-GFCDifS9o3pySGQ/https%3A%2F%2Fmailman.bic.mni.mcgill.ca%2Fmailman%2Flistinfo%2Floris-dev

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 http://www.massgeneralbrigham.org/complianceline<http://secure-web.cisco.com/18SOeuUvf6abVJ7UfrjsS5rxFjPhooCkDl3OVV8pgc2bMQL26jTi2TCay5nNdFHyB5N86eHtrTNGD0cUxuC6wDnXEDIErXzgqltMlMcqjxTaeWm9BFBtPkIsrrP77x6oDXbWJq3f3sg_LnL1TXNJ3M45p9s_k1TQujVmJ30fr52RNiraDOemyTbX5ITgBN0hb35RSSo8PBKX0qh9L1x1xex9p8aXGlPtaN9WEeyUteBrxhFi2tseEF4qX48GJzj0yFSPDMv3BcFjl9QPUr4X6Dg/http%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . 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.

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 http://www.massgeneralbrigham.org/complianceline . 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20210112/e9df535d/attachment-0001.html>


More information about the Loris-dev mailing list