MaxwellBo / Muncoordinated-2

πŸ‡ΊπŸ‡³ Muncoordinated is a Model UN committee management service, (re)written with TypeScript, React, Semantic UI and Firebase.
https://muncoordinated.io/
GNU General Public License v3.0
33 stars 21 forks source link

Vite Migration #204

Closed GeordieEK closed 2 months ago

GeordieEK commented 2 months ago

Description

Migration from create-react-app to vite

Includes move from jest to vitest Includes move from require() to import syntax for cypress v13+

Motivation

Addresses #195

Testing

Fails as many Cypress tests as it did with CRA

GeordieEK commented 2 months ago

Can we remove this heroku buildpack from app.json?

  "buildpacks": [
    {
      "url": "https://github.com/mars/create-react-app-buildpack"
    }
  ]
MaxwellBo commented 2 months ago

Can we remove this heroku buildpack from app.json?

yep!

MaxwellBo commented 2 months ago

Let me figure out Error: SentryCLI needs an authentication token. Please set env variable SENTRY_AUTH_TOKEN

Solved: I have deleted the plugin.

MaxwellBo commented 2 months ago
1:21:35 PM: Deploy site                                                   
1:21:35 PM: ────────────────────────────────────────────────────────────────
1:21:35 PM: ​
1:21:35 PM: Section completed: deploying
1:21:35 PM: ​
1:21:35 PM: Configuration error                                           
1:21:35 PM: ────────────────────────────────────────────────────────────────
1:21:35 PM: ​
1:21:35 PM:   Error message
1:21:35 PM:   Deploy did not succeed: Deploy directory 'build' does not exist
1:21:35 PM: ​
1:21:35 PM:   Resolved config
1:21:35 PM:   build:
1:21:35 PM:     command: yarn build
1:21:35 PM:     commandOrigin: ui
1:21:35 PM:     environment:
1:21:35 PM:       - CI
1:21:35 PM:       - REVIEW_ID
1:21:35 PM:     publish: /opt/build/repo/build
1:21:35 PM:     publishOrigin: ui
1:21:36 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:21:36 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:21:36 PM: Failing build: Failed to build site
GeordieEK commented 2 months ago

Fixed Netlify build