nofx icon indicating copy to clipboard operation
nofx copied to clipboard

[BUG] During First Installation "Cannot find name 'CardProps'."

Open ZabtzStudio opened this issue 1 year ago β€’ 3 comments

πŸ› Bug Description

Issue with first installation/setup of NoFxAiOS

πŸ“‹ Steps to Reproduce

First installation on linux mint, w/ docker

βœ… Expected Behavior

Program launches

❌ Actual Behavior

Program exits with error code 2

πŸ“Έ Screenshots / Logs


=> ERROR [nofx-frontend builder 6/6] RUN npm run build                    3.6s
------
 > [nofx-frontend builder 6/6] RUN npm run build:
0.291 
0.291 > [email protected] build
0.291 > tsc && vite build
0.291 
3.445 src/components/landing/CommunitySection.tsx(32,16): error TS2304: Cannot find name 'CardProps'.
------
Dockerfile.frontend:21

--------------------

  19 |     

  20 |     COPY web/ ./

  21 | >>> RUN npm run build

  22 |     

  23 |     # ──────────────────────────────────────────────────────────────

--------------------

target nofx-frontend: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

πŸ’» Environment

  • OS: [Linux Mint 22.1]
  • Go Version: [N/A]
  • Node.js Version: [N/A]
  • NOFX Version/Commit: [v3.0.0]
  • Deployment Method: [Docker]
  • Exchange: [N/A]

πŸ”§ Additional Context

  • Does this happen consistently or intermittently?

Unknown, happened on first attempt at startup.

  • Did it work before? When did it break?

Broke on first installation.

  • Any recent configuration changes?

None

βœ‹ Possible Solution

Defined interface Cardprops in web/src/components/landing/CommunitySection.tsx

interface CardProps { quote: string authorName: string handle: string avatarUrl: string tweetUrl: string delay: number }

*This did allow me to get NoFxAiOS Working.

ZabtzStudio avatar Nov 03 '25 02:11 ZabtzStudio

Just submit a commit https://github.com/NoFxAiOS/nofx/pull/289/commits/317111bb1d972b9020694e2dc57503195cf43719

pressdot avatar Nov 03 '25 02:11 pressdot

Just submit a commit 317111b

δ»£η ζ²‘ζœ‰θ’«εˆεΉΆθΏ›εŽ»

klgd avatar Nov 03 '25 13:11 klgd

Fixed in https://github.com/NoFxAiOS/nofx/issues/309

xqliu avatar Nov 03 '25 16:11 xqliu