Migrate from Create React App to Vite
This closes #51 (closed).
I am opening in draft status as there is still an issue I need to fix with the dev
server.
Currently, npm start
or npm run start
do not properly launch the app on the dev server. Instead, it launches a blank page with the following error reported to the console:
Uncaught ReferenceError: global is not defined
js rng-browser.js:4
__require2 chunk-BQWMX7FD.js:15
js uuid.js:9
__require2 chunk-BQWMX7FD.js:15
js index.js:29
__require2 chunk-BQWMX7FD.js:15
<anonymous> react-graph-vis.js:29391
The following workflow does work for previewing the build (after running npm install
if using this branch for the first time):
npm run build
npm run preview
but this is not ideal for local devs. Likely need to adjust the vite.config.js
file to solve this issue. It looks like similar issues with Vite have been reported in the past.
Edited by Dillon Scott Fitzgerald