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.
Merge request reports
Activity
changed milestone to %Ntuple Wizard + service on Open Data portal - LHCb-internal alpha release
added Ntuple wizard WP6 - Analysis Preservation & Open Data labels
assigned to @dfitzger
mentioned in issue #51 (closed)
added 1 commit
- e2c5cd89 - Fix issue Uncaught ReferenceError: global is not defined when launching the dev server with vite
- Resolved by Dillon Scott Fitzgerald
added 1 commit
- e4ddba17 - update package-lock.json with vite dependencies
mentioned in commit caff79fd