When I run it on my Mac, bunx --bun vite build does this:
vite v5.4.2 building for production...✓ 2951 modules transformed.dist/index.html 1.03 kB │ gzip: 0.56 kBdist/assets/index-BifuYEoc.css 38.29 kB │ gzip: 8.03 kBdist/assets/index-BG4aLjCM.js 3,571.02 kB │ gzip: 649.00 kB✓ built in 3.08sFrom a GitHub Actions workflow:
vite v5.4.2 building for production...transforming...✓ 347 modules transformed.x Build failed in 3.12serror during build:undefinederror: script "build" exited with code 1Error: Process completed with exit code 1.undefined. That’s very helpful. Presumably, it’s the error message...
This used to work. The only thing I can think of that changed is I added vite.config.ts:
import path from "path";import { defineConfig } from "vite";import react from "@vitejs/plugin-react";import graphqlLoader from "vite-plugin-graphql-loader";import tsconfigPaths from 'vite-tsconfig-paths';export default defineConfig({ plugins: [react(), graphqlLoader(), tsconfigPaths()], resolve: { alias: {'@': path.resolve(__dirname, './src') }, }});How can I debug this?