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

[DevOps] - Migrate to Node 18 #625

Closed
Ari-S-123 opened this issue Jan 21, 2023 · 7 comments · Fixed by #1288
Closed

[DevOps] - Migrate to Node 18 #625

Ari-S-123 opened this issue Jan 21, 2023 · 7 comments · Fixed by #1288
Assignees
Labels
dev-ops difficult spike Research stale Hasn't been updated in a while

Comments

@Ari-S-123
Copy link
Contributor

Ari-S-123 commented Jan 21, 2023

Description

Migrate from Node 16 to Node 18. Node 16 will be at its End-of-Life on September 11, 2023, so this ticket should be completed by then.

Acceptance Criteria

There should not be any regressions from the migration, all features should work the same as before.

Proposed Solution

Run the app with node 18 and fix any issues that arise.

@acd124 acd124 added the spike Research label Feb 2, 2023
@acd124 acd124 self-assigned this Feb 2, 2023
@acd124
Copy link
Contributor

acd124 commented Feb 9, 2023

Problem 1: error:0308010C:digital envelope routines::unsupported
Solution: Upgrade react-scripts to version ^5.0.1
https://www.freecodecamp.org/news/error-error-0308010c-digital-envelope-routines-unsupported-node-error-solved/

@acd124
Copy link
Contributor

acd124 commented Feb 14, 2023

Problem 2: ERROR in src/tests/pages/ChangeRequestDetailPage/ReviewChangeRequest.test.tsx:16:9
Something about missing wbsName in a type. Also see #1093
Should be fixed via another PR before this.
src/frontend/src/tests/pages/ChangeRequestDetailPage/ChangeRequestDetailsView.test.tsx also had similar issue, just missing a prop.

@acd124
Copy link
Contributor

acd124 commented Feb 16, 2023

Problem 3: [eslint] Failed to load config "react-app" to extend from.
Solution should involve adding the react app eslint config as a dev dependency, might have to resolve version conflicts with react scripts. This error shows up as a popup in the frontend but clicking x lets you just run the app
yarn add eslint-config-react-app -D
error about conflicting versions only shows up once, unsure how to solve
See facebook/create-react-app#11759 for the possible source

@acd124
Copy link
Contributor

acd124 commented Feb 16, 2023

Problem 4: Backend giving 500 errors with Error Unknown Forgot to update database

@acd124
Copy link
Contributor

acd124 commented Mar 26, 2023

Regarding Problem 3: eslint for react
The root of the issue appears to be somewhere in react-scripts which may have a solution related to #619. This error does not affect normal app usage but may be a consistent annoyance in development.

@github-actions github-actions bot added the stale Hasn't been updated in a while label Jun 15, 2023
@ninest
Copy link
Member

ninest commented Aug 3, 2023

@acd124 Does vite (#619) fix this 👀

@acd124
Copy link
Contributor

acd124 commented Aug 3, 2023

@acd124 Does vite (#619) fix this 👀

Everything looks like it does, yes. I've run the app several times on node18 no issues from a blank slate develop branch. The other minor issues I documented here are likely not impacting regular development when using vite.

acd124 added a commit that referenced this issue Aug 16, 2023
acd124 added a commit that referenced this issue Aug 16, 2023
@acd124 acd124 mentioned this issue Aug 16, 2023
13 tasks
acd124 added a commit that referenced this issue Aug 16, 2023
acd124 added a commit that referenced this issue Aug 19, 2023
RChandler234 added a commit that referenced this issue Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-ops difficult spike Research stale Hasn't been updated in a while
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants