Post AYwELqa45hC1OXlcVE by Bajax@shitposter.club
 (DIR) More posts by Bajax@shitposter.club
 (DIR) Post #AYw5np9y4Ht1VbpH4i by Bajax@shitposter.club
       2023-08-20T22:32:29.639592Z
       
       0 likes, 0 repeats
       
       @hj Hey I’m trying to build pleroma-fe from source, but when I run yarn build I get the following error: manually trying to fix dependencies (using yarn add just makes it worse.  Any idea what’s going on here?
       
 (DIR) Post #AYw9WC0EnboOxY7gO0 by hj@shigusegubu.club
       2023-08-20T23:13:36.051311Z
       
       0 likes, 0 repeats
       
       @Bajax how worse? What node version?
       
 (DIR) Post #AYwDukymoAk0CiPdnE by Bajax@shitposter.club
       2023-08-21T00:03:23.182381Z
       
       0 likes, 0 repeats
       
       @hj 16.22, by worse I mean, when I try to install "semver" manually, it complains that chalk is missing-- when I try to install "chalk" it complains that semver is missing.  When I tried to install both and everything I found inside the yarn lockfile, it gave an error about invalid import syntax.  Here's a screenshot of my posts might be more helpful than my recap in this post
       
 (DIR) Post #AYwE887I617Zj9lddw by Bajax@shitposter.club
       2023-08-21T00:05:47.937859Z
       
       0 likes, 0 repeats
       
       @hj while I was composing this post I installed node 18.17.1, followed all the same steps and got all the same errors.   I'm also resetting my working copy to the current head of the dev branch between every new thing I'm trying to get rid of any lockfiles etc yarn or npm might try to update.
       
 (DIR) Post #AYwEDgqYOjj4t9adxA by hj@shigusegubu.club
       2023-08-21T00:06:23.251556Z
       
       0 likes, 0 repeats
       
       @Bajax you don't install modules manually, just run `yarn` or `yarn install` and it will fetch all the dependencies for you. You'll probably need to wipe your node_modules and restore package_lock file after all the manual mess you did.
       
 (DIR) Post #AYwEFf4bxhSdy56ano by Bajax@shitposter.club
       2023-08-21T00:07:09.998717Z
       
       0 likes, 0 repeats
       
       @hj Already done so as per the instructions in the repo every time.  Every time it says it's missing semver.
       
 (DIR) Post #AYwELqa45hC1OXlcVE by Bajax@shitposter.club
       2023-08-21T00:08:15.924881Z
       
       0 likes, 0 repeats
       
       @hj did the additional step you mentioned, removing node_modules, same story.  Should I try to delete the working copy and re-clone?
       
 (DIR) Post #AYwEN2jsN90hOOvV4K by hj@shigusegubu.club
       2023-08-21T00:08:03.516945Z
       
       0 likes, 0 repeats
       
       @Bajax what does it say when you just run `yarn`?
       
 (DIR) Post #AYwEQIclldLnWr9g2K by Bajax@shitposter.club
       2023-08-21T00:09:05.136647Z
       
       0 likes, 0 repeats
       
       @hj this.  Looks pretty normal, just some warnings
       
 (DIR) Post #AYwEgaKFiofB3uG9Oi by hj@shigusegubu.club
       2023-08-21T00:11:33.143963Z
       
       0 likes, 0 repeats
       
       @Bajax `git reset hard` (undo all local modifications) and `git clean -fdx` (remove all extraneous untracked files) should be enough.
       
 (DIR) Post #AYwEnBBXaliP7KKT6O by Bajax@shitposter.club
       2023-08-21T00:13:12.805380Z
       
       0 likes, 0 repeats
       
       @hj I've been doing `git checkout .` to reset files and manually rming any untracked files if they exist.  I'd already deleted and re-cloned by the time you posted this, though, and it's the same story.  Module semver is missing.
       
 (DIR) Post #AYwFKf11hipNBtNNw0 by hj@shigusegubu.club
       2023-08-21T00:18:45.460120Z
       
       1 likes, 0 repeats
       
       @Bajax git checkout . doesn't reset anything I don't think, git reset --hard is the proper way but I'm not an expert. It's 3am here, maybe something went wrong with npm again but I suspect your manual manipulations altered the package json and lockfile causing issues, I'll checkafder I wake up. If you just want recent develop build it should be here https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/240362/artifacts/browse
       
 (DIR) Post #AYwFSHv1Sg4bsFClkG by Bajax@shitposter.club
       2023-08-21T00:20:24.878878Z
       
       0 likes, 0 repeats
       
       @hj Yeah I've delete the repo and re-cloned it several times.  Unless somehow something in the state of my global NPM packages is messing something up, or for some reason yarn can'---just thought of something.  I'm running this as root.  I wonder if that messes with yarn somehow.
       
 (DIR) Post #AYwFULaCoDTdokRx4K by Bajax@shitposter.club
       2023-08-21T00:21:01.105500Z
       
       0 likes, 0 repeats
       
       @hj reason I'm running it as root is I don't want the pleroma user to have access to change these files and I was gonna take care of setting the permissions etc aftwerwards.
       
 (DIR) Post #AYwGVaXyl4UATIZ2TA by Bajax@shitposter.club
       2023-08-21T00:32:24.801917Z
       
       0 likes, 0 repeats
       
       @hj `git checkout .`  resets modified files, but doesn't touch untracked files. just force of habit that I use it.
       
 (DIR) Post #AYwGZ6HtCj9BmWiGem by Bajax@shitposter.club
       2023-08-21T00:33:05.084488Z
       
       0 likes, 0 repeats
       
       @hj anyway thanks for the help so far-- it seems like this may be some unicorn problem with my server and my server alone.  I'm about to replace the hardware so I'll just shelve this until then.