Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: NPM deprecation warnings when installing fresh #312

Open
1 task
gbowne1 opened this issue Oct 19, 2023 · 5 comments
Open
1 task

[Bug]: NPM deprecation warnings when installing fresh #312

gbowne1 opened this issue Oct 19, 2023 · 5 comments
Labels
bug Something isn't working dependencies Dependencies devops this is a devops related feature or issue or PR hacktoberfest The hacktoberfest label help wanted Extra attention is needed high-complexity This issue is an advanced complexity issue high-priority infrastructure medium-complexity This issue is medium complexity question Further information is requested

Comments

@gbowne1
Copy link
Owner

gbowne1 commented Oct 19, 2023

Describe the Bug

Today Oct 18th 2023, I did a clean installing the 3 sets of packages, client, e2e and server using npm install wherever a package.json exists on a new development VM I created shows some deprecated dependencies.

In /server I get:

~/Documents/reactsocialnetwork/server
$ npm install
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer

In /client I get:

~/Documents/reactsocialnetwork/client
$ npm install
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: [email protected]
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.

There were no issues installing e2e packages.

I think these are the dependencies of our packages, internal to the npm installs so they reside in node_modules folder(s). On another note, the app runs just fine the way it is. Mind you, I have had issues with svgo in the past, hence the svgo config file in the project root.

Steps to Reproduce

I would say you might make or use a ~/tmp directory, clone or fork the project to it and clean install all 3 sets of packages from /server, /client and /server and see if theres any npm warnings for deprecated packages.

Screenshots

No response

Which device are you using?

Hewlett Packard Enterprise DL360 G7 Server

Which operating system are you using?

Debian 12 VM on VirtualBox

Which browser are you using?

Firefox 118

Additional Context

Not sure how to fix these internal node_module issues with the deprecations.

Any one have any ideas?

Contribute

  • I am willing to contribute and submit a pull request
@gbowne1 gbowne1 added bug Something isn't working help wanted Extra attention is needed question Further information is requested infrastructure high-priority high-complexity This issue is an advanced complexity issue medium-complexity This issue is medium complexity hacktoberfest The hacktoberfest label devops this is a devops related feature or issue or PR dependencies Dependencies labels Oct 19, 2023
@gbowne1 gbowne1 added this to the Testing & Deployment milestone Oct 19, 2023
@gbowne1 gbowne1 moved this to Todo in ReactSocialNetwork Oct 19, 2023
@gbowne1 gbowne1 changed the title [Bug]: <title> [Bug]: NPM deprecation warnings when installing fresh Oct 19, 2023
@balajik
Copy link
Collaborator

balajik commented Oct 21, 2023

@gbowne1 these warning are not be from the direct dependencies of this project. It is be from internal dependencies of the packages used in both client and server which we can't resolve.

If our dependency package resolves the warning in their setup, then it will be resolve the warning in here after the new version of that package is updated. But some of the warning are from the package which are not actively maintained now. Ex: CRA. this warning "@babel/plugin-proposal-nullish-coalescing-operator" is from create-react-app, but they will not update and release any new version in that package.

@gbowne1
Copy link
Owner Author

gbowne1 commented Oct 21, 2023

@balajik I've done this same procedure/process several times over 3-6 months and these warnings are all the same packages.

I am wondering how do we solve this issue.

@balajik
Copy link
Collaborator

balajik commented Oct 21, 2023

I think most of the warnings are from CRA which is not maintained anymore.

If we need to fix these warnings, then we have to wait for that package to release a version with fixing the warnings or need to find an alternative of that package which is up-to-date like for example using vite, next.js instead of CRA.

@gbowne1
Copy link
Owner Author

gbowne1 commented Oct 21, 2023

Ok. @balajik. Well I know about CRA.

I am not sure what we system we should move to, other than what Facebook was recommending people migrate to.

I've heard some people moved to just setting up their projects with the React package and adding the packages manually like webpack, babel Express, etc. which we could do but might be more work unless we could automate some of it/all of it.

I made a discussion about this in Discussions a while back.

@gbowne1
Copy link
Owner Author

gbowne1 commented Jun 13, 2024

The new Docker build system that when merged into this project repository should work way better now! We have also had extensive package updates since this issue happened in late 2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Dependencies devops this is a devops related feature or issue or PR hacktoberfest The hacktoberfest label help wanted Extra attention is needed high-complexity This issue is an advanced complexity issue high-priority infrastructure medium-complexity This issue is medium complexity question Further information is requested
Projects
Development

No branches or pull requests

2 participants