nofx
nofx copied to clipboard
[BUG] During First Installation "Cannot find name 'CardProps'."
π 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.
Just submit a commit https://github.com/NoFxAiOS/nofx/pull/289/commits/317111bb1d972b9020694e2dc57503195cf43719
Fixed in https://github.com/NoFxAiOS/nofx/issues/309