GithubHelp home page GithubHelp logo

Bug: Different file (/usr/share/nodejs/react-is/index.js ) contents when installing via "apt install" and build from source, install package. about react HOT 3 OPEN

ppetrov75 avatar ppetrov75 commented on April 27, 2024
Bug: Different file (/usr/share/nodejs/react-is/index.js ) contents when installing via "apt install" and build from source, install package.

from react.

Comments (3)

markerikson avatar markerikson commented on April 27, 2024 1

Why in the world are you trying to install React as a Linux package?

Also, the React team is definitely not responsible for any repackaging of React into a Linux package - they only publish to NPM.

from react.

ppetrov75 avatar ppetrov75 commented on April 27, 2024

Checked on Debian12. Content of the file is same after install from source.
Some output:
$ cat /usr/share/nodejs/react-is/index.js
'use strict';

if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-is.production.min.js');
} else {
module.exports = require('./cjs/react-is.development.js');
}
$ sudo dpkg -i ./node-react_18.2.0+dfsg+~cs87.31.26-4_all.deb
[sudo] password for user:
(Reading database ... 354612 files and directories currently installed.)
Preparing to unpack .../node-react_18.2.0+dfsg+~cs87.31.26-4_all.deb ...
Unpacking node-react (18.2.0+dfsg+~cs87.31.26-4) over (18.2.0+dfsg+~cs87.31.26-4) ...
Setting up node-react (18.2.0+dfsg+~cs87.31.26-4) ...

$ cat /usr/share/nodejs/react-is/index.js
'use strict';

if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-is.production.min.js');
} else {
module.exports = require('./cjs/react-is.development.js');
}

from react.

ppetrov75 avatar ppetrov75 commented on April 27, 2024

Thank you for answering.

I install it as a package because in Ubuntu it comes as a *.deb file and therefore it is possible to install it separately as a package and build from source.

I see contacts of maintainers of the package. So I'll write them.
Maintainer: Debian Javascript Maintainers [email protected]
Uploaders: Pirate Praveen [email protected]

Thank you.

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.