Skip to content

Upgrade react-scripts on the front-end to allow for later versions of node #1324

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

Closed
5 tasks done
trillium opened this issue Mar 9, 2023 · 6 comments · Fixed by #1326, #1342 or #1349
Closed
5 tasks done

Upgrade react-scripts on the front-end to allow for later versions of node #1324

trillium opened this issue Mar 9, 2023 · 6 comments · Fixed by #1326, #1342 or #1349
Labels
complexity: missing draft Not ready for prioritization yet feature: Package Update ready for dev lead Add to issue when dev lead needs to take some action role: Front End size: 1pt Can be done in 4-6 hours

Comments

@trillium
Copy link
Member

trillium commented Mar 9, 2023

Update: Need to resolve error

Error when applcation hot rebuilds during development:

[eslint] ESLint configuration in ../.eslintrc is invalid:
    - Unexpected top-level property "babelOptions".
ERROR in [eslint] ESLint configuration in ../.eslintrc is invalid:
    - Unexpected top-level property "babelOptions".

Overview

We would like to use later versions of node, currently the frontend doesn't build unless we use node 16. The application won't build in node 17+ because of an SSL change that fixed a security vulnerability.

This issue has been around since #756

Stack Trace
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at module.exports (/Users/trilliumsmith/code/VRMS/client/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/trilliumsmith/code/VRMS/client/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/trilliumsmith/code/VRMS/client/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/trilliumsmith/code/VRMS/client/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/trilliumsmith/code/VRMS/client/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/trilliumsmith/code/VRMS/client/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/trilliumsmith/code/VRMS/client/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/trilliumsmith/code/VRMS/client/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
/Users/trilliumsmith/code/VRMS/client/node_modules/react-scripts/scripts/start.js:19
  throw err;

Upgrading react-scripts allows the the VRMS app to use later verions of node, while also closing closing a potential security vulnerabiltiy.

Action Items

Resources/Instructions

@trillium trillium changed the title Upgrade react-scripts to allow for later versions of node Upgrade react-scripts on the front-end to allow for later versions of node Mar 9, 2023
@trillium trillium self-assigned this Mar 9, 2023
@MattPereira
Copy link
Contributor

@spiteless I love how you wrote this issue

Just be sure to check off the action items as you complete them so that when someone reviews your PR they know which steps you have or have not completed

@trillium
Copy link
Member Author

trillium commented Jul 13, 2023

Wanting to note that Node 16 end of life is September 11th, 2023

@ExperimentsInHonesty ExperimentsInHonesty added size: 1pt Can be done in 4-6 hours and removed x-size: 2pt labels Jul 13, 2023
@JackHaeg
Copy link
Member

@spiteless I noticed that you moved this into the icebox. What is the blocker that keeps us from working on this?

@JackHaeg JackHaeg added this to the Infrastructure milestone Jul 21, 2023
@JackHaeg JackHaeg added ready for dev lead Add to issue when dev lead needs to take some action and removed milestone: missing labels Jul 21, 2023
@JackHaeg JackHaeg added the draft Not ready for prioritization yet label Jul 21, 2023
@trillium
Copy link
Member Author

trillium commented Jul 21, 2023

At the time the issue was getting to a workable eslint setup. We merged a working version of the upgrade to a higher node version a couple of times but the changes were breaking the dev environment in a way that I was unable to resolve.

I’ve since worked on this some more due to the fact that node 14 is being sunset and create-react-app is also no longer the recommended way of starting react projects, but I wanted to make sure that there weren’t lingering issues.

The VRMS/vite branch fixes this ticket, but the devs need to talk as a group on whether using vite as a build tool is appropriate for VRMS.

@JackHaeg
Copy link
Member

Thanks for the update @spiteless ! If there is time during the call tonight, could we discuss this with the devs?

@trillium
Copy link
Member Author

Closing as unplanned, Vite will take care of this

@github-project-automation github-project-automation bot moved this from New Issue Approval to Final QA (product) in P: VRMS: Project Board Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: missing draft Not ready for prioritization yet feature: Package Update ready for dev lead Add to issue when dev lead needs to take some action role: Front End size: 1pt Can be done in 4-6 hours
Projects
Status: Final QA (product)
5 participants