BitByte-TPC / TPC-website

This is the official website of The Programming Club
https://iiitdmj.ac.in/webix.iiitdmj.ac.in
MIT License
7 stars 24 forks source link

Migrate from CRA to Vite #74

Closed garg3133 closed 9 months ago

garg3133 commented 9 months ago

Since CRA is no longer maintained, this PR aims to migrate this project from using react-scripts to Vite. Also, migrates the project to ESM (type=module).

Doing so also fixes almost all the issues reported in #69 with an exception of the following deprecation warnings:

> npm i

npm WARN deprecated @material-ui/styles@4.11.5: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm WARN deprecated @material-ui/pickers@3.3.11: This package no longer supported. It has been relaced by @mui/x-date-pickers
npm WARN deprecated @material-ui/lab@4.0.0-alpha.61: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm WARN deprecated @material-ui/core@4.12.4: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.

After this change, the website continues to work as before, but is yet to be tested on production (though running npm run serve after building the project works fine).

Guide followed during this migration: https://www.freecodecamp.org/news/how-to-migrate-from-create-react-app-to-vite/

Next Steps: