Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7168

Bun/Vite build failing in GitHub Actions/Ubuntu —“undefined” error message

$
0
0

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.08s

From 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?


Viewing all articles
Browse latest Browse all 7168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>