hearmeneigh / fchat-rising

A heavily modded F-Chat 3.0 client for F-List
https://hearmeneigh.github.io/fchat-rising/
MIT License
38 stars 17 forks source link

Webchat won't build (applies to mobile too) #124

Open kelvinnkat opened 1 year ago

kelvinnkat commented 1 year ago

Yarn install runs properly, but when I go into the webchat or mobile directories and run yarn watch or yarn build, I get an error, linked below. It doesn't seem to happen when building the electron version. Running as sudo or without it doesn't seem to make a difference.

Some quick info: I'm on a Raspberry Pi 400, running Raspberry OS 11 Bullseye.

fchat error.txt

EzhikOFF13 commented 1 year ago

Developer said this at may. I guess it applies to the web version as well.

BeccaTurnerFlist commented 1 year ago

as far as I can tell it's potentially due to missing dependencies

warning " > bootstrap@4.6.0" has unmet peer dependency "popper.js@^1.16.1". warning " > optimize-css-assets-webpack-plugin@5.0.8" has incorrect peer dependency "webpack@^4.0.0".

plus the first line of your error message shows that it's trying to go back "../webpack" but there is no webpack in the f-chat rising folder

BeccaTurnerFlist commented 1 year ago

To follow up on this though, the guide to building with Electron doesn't work either @mrstallion

hearmeneigh commented 1 year ago

@BeccaTurnerFlist This is how I build on MacOS, Ubuntu, and Windows:

Install

# Windows only
npm install --global --production --vs2015 --add-python-to-path windows-build-tools node-gyp

# All operating systems
git clone https://github.com/mrstallion/fchat-rising.git
cd fchat-rising
yarn

Build

cd electron
yarn build:dist
node pack.js

Dev Mode

Run two processes simultaneously:

# Process 1
cd electron
yarn watch
# Process 2
cd electron
yarn start