<div dir="ltr">Hello.<div><br></div><div>Please help.</div><div><br></div><div>I have a problem with package node-react on Ubuntu 22.04. </div>Different file (/usr/share/nodejs/react-is/index.js ) contents when installing via "apt install" and build from source, install built from source package.<div><br></div><div>Maybe you will point me to the patch etc? Required to open a ticket?</div><div><br></div><div>I checked this problem on Debian12. Contents of the file react-is/index.js are the same when installed via apt or install from sources. Debian12 has node-react_18.2.0+dfsg+~cs87.31.26-4 and added a separate package node-react-is.</div><div><br></div><div>Sequence of testing:</div><div><ol dir="auto" style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><li style="box-sizing:border-box;margin-left:0px"><p dir="auto" style="box-sizing:border-box;margin-top:16px;margin-bottom:16px"><strong style="box-sizing:border-box">sudo apt-get install node-react</strong><br style="box-sizing:border-box"><em style="box-sizing:border-box">output of command:</em><br style="box-sizing:border-box">Reading package lists... Done<br style="box-sizing:border-box">Building dependency tree... Done<br style="box-sizing:border-box">Reading state information... Done<br style="box-sizing:border-box">The following additional packages will be installed:<br style="box-sizing:border-box">node-prop-types<br style="box-sizing:border-box">The following NEW packages will be installed:<br style="box-sizing:border-box">node-prop-types node-react<br style="box-sizing:border-box">0 upgraded, 2 newly installed, 0 to remove and 54 not upgraded.<br style="box-sizing:border-box">Need to get 0 B/528 kB of archives.<br style="box-sizing:border-box">After this operation, 13,8 MB of additional disk space will be used.<br style="box-sizing:border-box">Do you want to continue? [Y/n]<br style="box-sizing:border-box">Selecting previously unselected package node-react.<br style="box-sizing:border-box">(Reading database ... 206340 files and directories currently installed.)<br style="box-sizing:border-box">Preparing to unpack .../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb ...<br style="box-sizing:border-box">Unpacking node-react (17.0.2+dfsg+~cs106.66.62-1) ...<br style="box-sizing:border-box">Selecting previously unselected package node-prop-types.<br style="box-sizing:border-box">Preparing to unpack .../node-prop-types_15.7.2+~15.7.4-2_all.deb ...<br style="box-sizing:border-box">Unpacking node-prop-types (15.7.2+~15.7.4-2) ...<br style="box-sizing:border-box">Setting up node-react (17.0.2+dfsg+~cs106.66.62-1) ...<br style="box-sizing:border-box">Setting up node-prop-types (15.7.2+~15.7.4-2) ...</p></li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"><p dir="auto" style="box-sizing:border-box;margin-top:16px;margin-bottom:16px"><strong style="box-sizing:border-box">cat /usr/share/nodejs/react-is/index.js</strong><br style="box-sizing:border-box"><em style="box-sizing:border-box">output:</em><br style="box-sizing:border-box">'use strict';</p></li></ol><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">if (process.env.NODE_ENV === 'production') {<br style="box-sizing:border-box">module.exports = require('./cjs/react-is.production.min.js');<br style="box-sizing:border-box">} else {<br style="box-sizing:border-box">module.exports = require('./cjs/react-is.development.js');<br style="box-sizing:border-box">}</p><ol start="3" dir="auto" style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><li style="box-sizing:border-box;margin-left:0px"><p dir="auto" style="box-sizing:border-box;margin-top:16px;margin-bottom:16px"><strong style="box-sizing:border-box">apt-get source -b node-react</strong> maybe required to call "sudo apt-get build-dep node-react" before.<br style="box-sizing:border-box"><em style="box-sizing:border-box">some output:</em><br style="box-sizing:border-box">dpkg-source: info: extracting node-react in node-react-17.0.2+dfsg+~cs106.66.62<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-react-shallow-renderer.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-create-subscription.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-cache.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-devtools.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-dom.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-is.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-reconciler.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-react-test-renderer.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-scheduler.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-types-use-subscription.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62.orig-typesreact.tar.xz<br style="box-sizing:border-box">dpkg-source: info: unpacking node-react_17.0.2+dfsg+~cs106.66.62-1.debian.tar.xz<br style="box-sizing:border-box">dpkg-source: info: using patch list from debian/patches/series<br style="box-sizing:border-box">....<br style="box-sizing:border-box">dpkg-deb: building package 'node-react' in '../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb'.<br style="box-sizing:border-box">dpkg-genbuildinfo --build=binary -O../node-react_17.0.2+dfsg+~cs106.66.62-1_amd64.buildinfo<br style="box-sizing:border-box">dpkg-genchanges --build=binary -O../node-react_17.0.2+dfsg+~cs106.66.62-1_amd64.changes<br style="box-sizing:border-box">dpkg-genchanges: info: binary-only upload (no source code included)<br style="box-sizing:border-box">dpkg-source --after-build .<br style="box-sizing:border-box">dpkg-buildpackage: info: binary-only upload (no source included)</p></li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"><p dir="auto" style="box-sizing:border-box;margin-top:16px;margin-bottom:16px"><strong style="box-sizing:border-box">sudo dpkg -i ./node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb</strong><br style="box-sizing:border-box"><em style="box-sizing:border-box">output:</em><br style="box-sizing:border-box">(Reading database ... 206652 files and directories currently installed.)<br style="box-sizing:border-box">Preparing to unpack .../node-react_17.0.2+dfsg+~cs106.66.62-1_all.deb ...<br style="box-sizing:border-box">Unpacking node-react (17.0.2+dfsg+~cs106.66.62-1) over (17.0.2+dfsg+~cs106.66.62-1) ...<br style="box-sizing:border-box">Setting up node-react (17.0.2+dfsg+~cs106.66.62-1) ...</p></li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"><p dir="auto" style="box-sizing:border-box;margin-top:16px;margin-bottom:16px"><strong style="box-sizing:border-box">cat /usr/share/nodejs/react-is/index.js</strong><br style="box-sizing:border-box"><em style="box-sizing:border-box">output:</em><br style="box-sizing:border-box">/**</p></li></ol><ul dir="auto" style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><li style="box-sizing:border-box;margin-left:0px">Copyright (c) Facebook, Inc. and its affiliates.</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"></li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px">This source code is licensed under the MIT license found in the</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px">LICENSE file in the root directory of this source tree.</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"></li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px"><a class="gmail-user-mention gmail-notranslate" href="https://github.com/flow" style="box-sizing:border-box;background-color:transparent">@flow</a><br style="box-sizing:border-box">*/</li></ul><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">'use strict';</p><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">export * from './src/ReactIs';</p><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><br></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Best Wishes.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31,35,40);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><br></p></div></div>