From 33f0ba2bc984979e0d304e79392e1c2fa4f7f33e Mon Sep 17 00:00:00 2001 From: kidneyweakx Date: Thu, 12 Dec 2024 20:02:18 +0800 Subject: [PATCH] fix(pwa): build error --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ apps/pwa/src/routes/fomo-game.tsx | 26 +------------------------- bun.lockb | Bin 597456 -> 597424 bytes 3 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..3a80632 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +name: Test Build + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Set up Bun.js 🛠️ + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies 📦 + run: bun install + + - name: Build 🏗 + run: bun run build --filter pwa \ No newline at end of file diff --git a/apps/pwa/src/routes/fomo-game.tsx b/apps/pwa/src/routes/fomo-game.tsx index 25d8c0b..daf2bc3 100644 --- a/apps/pwa/src/routes/fomo-game.tsx +++ b/apps/pwa/src/routes/fomo-game.tsx @@ -5,12 +5,11 @@ import { useEffect, useState, useRef } from "react"; import { MintMemeButton } from "@/components/MintMemeButton"; import { Canvas } from "@react-three/fiber"; import { getProject } from "@theatre/core"; -import { SheetProvider, editable as e, PerspectiveCamera } from "@theatre/r3f"; import { OrbitControls, useGLTF } from "@react-three/drei"; const sheet = getProject("ikkyu").sheet("Sheet"); function Bonk() { - const { nodes, materials } = useGLTF("/cartoon_bonk.glb"); // Load the .glb file + const { nodes } = useGLTF("/cartoon_bonk.glb"); // Load the .glb file return ( - - - - - - - - - ); - } - useEffect(() => { let motionListener: any; if (isRunning) { diff --git a/bun.lockb b/bun.lockb index 4a9a7e1a85b58996772e486a78412376652c8346..84610492e8e81e97d8abd9dd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