Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running NPM start gives autoToHTML export error from MOTD-parser #249

Open
SnelleJaapie opened this issue Apr 15, 2024 · 2 comments
Open

Comments

@SnelleJaapie
Copy link

SnelleJaapie commented Apr 15, 2024

I am kinda clueless at this point as to what to do. Maybe it simply has to do with the fact that I am running this on a Raspberry PI 5 with RBP OS?
I installed everything according to the documentation on a Paper server, by manually downloading the ZIP and extracting it in my server folder and changing some config options (just motd title and version). Also running the latest version of paper 1.20.4 (which is supperted according to the node protecol), but even 1.20.2 doesn't work.

When I run npm start, it will start up untill [> tsc] log.. it pauses for a bit and then throws the following error:
`

[email protected] prebuild
rimraf ./build/ ./bin/ && cpx-fixed "views/**/." build/views

[email protected] build
run-s build:typescript build:bin

[email protected] build:typescript
tsc

src/sleepingHelper.ts:4:10 - error TS2724: '"@sfirew/minecraft-motd-parser"' has no exported member named 'autoToHtml'. Did you mean 'autoToHTML'?

4 import { autoToHtml, cleanTags } from "@sfirew/minecraft-motd-parser";

Found 1 error in src/sleepingHelper.ts:4
`

However, when I go into the build folder that is generated, and I run sleepingserverstarter.js using node, it runs, when I refresh the server list I also get the log "a prince has taken a quick peek", but when I try to connect it doesn't work...

Is this a bug atm or is this particularly on my part?

@darkwolf682
Copy link

same problem

@SnelleJaapie
Copy link
Author

SnelleJaapie commented Apr 17, 2024

Main problem not fixed yet, but this worked for me, for linux/RBP users (loginMessage shows error, but server starts)

It's presented in the documentation of vincss aswell as first choice, but using the binaries seemed to work for me from this link

I used the linux-arm64 version for RaspberryPi/paper server (as per documentation).
I tried this method before but I couldn't get it to work, because I am a idiot for not reading. First time I used the linux-x64 version, which would not boot and show nothing (maybe it should've?), so arm64 did the trick.

NOTE: When using the correct Binary, I first removed all traces of the manual install through zip, that includes deleting all the files and folders that came with it. After that, starting the arm64 either through dubble click or via terminal (@pi: ./[arm64-filename]) seemed to do the trick, as to I could use a screen session and keep the thing running when closing out of windows. The binary will create a settings file for you after first launch to change stuff there.

Hope this might help some with same issue (@darkwolf682 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants