NPM start dosen't work.
Craters12 opened this issue · 6 comments
Every time I run npm start I get this...
` \Paper 1.20.1>npm start
mcsleepingserverstarter@1.6.1 start
run-s prebuild build:typescript run
mcsleepingserverstarter@1.6.1 prebuild
rimraf ./build/ ./bin/ && cpx-fixed "views/**/." build/views
mcsleepingserverstarter@1.6.1 build:typescript
tsc
src/sleepingBedrock.ts:7:27 - error TS2307: Cannot find module '@jsprismarine/prismarine/dist/player/PlayerManager' or its corresponding type declarations.
7 import PlayerManager from "@jsprismarine/prismarine/dist/player/PlayerManager";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sleepingBedrock.ts:9:24 - error TS2307: Cannot find module '@jsprismarine/raknet/dist/Connection' or its corresponding type declarations.
9 import Connection from "@jsprismarine/raknet/dist/Connection";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sleepingBedrock.ts:10:22 - error TS2307: Cannot find module '@jsprismarine/raknet/dist/Listener' or its corresponding type declarations.
10 import Listener from "@jsprismarine/raknet/dist/Listener";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sleepingBedrock.ts:11:25 - error TS2307: Cannot find module '@jsprismarine/raknet/dist/protocol/Identifiers' or its corresponding type declarations.
11 import Identifiers from "@jsprismarine/raknet/dist/protocol/Identifiers";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sleepingBedrock.ts:101:43 - error TS2339: Property 'getConnection' does not exist on type 'RaknetConnectEvent'.
101 const connection = raknetConnectEvent.getConnection();
~~~~~~~~~~~~~
src/sleepingBedrock.ts:109:22 - error TS2694: Namespace '"C:/Users/creig/OneDrive/Desktop/Paper 1.20.1/node_modules/@jsprismarine/raknet/dist/protocol/Protocol"' has no exported member 'EncapsulatedPacket'.
109 packet: Protocol.EncapsulatedPacket,
~~~~~~~~~~~~~~~~~~
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 7 errors in 2 files.
Errors Files
6 src/sleepingBedrock.ts:7
1 src/sleepingHelper.ts:4
ERROR: "build:typescript" exited with 2. `
How do I fix this? I've been trying to make it work but there is really nothing that's helpful. if you need me to try to find anything else just tell me and ill try to get that.
(Sorry if i needed to condense this. I have no clue how really any of this works.)
Hi,
Seems related to this :
#196
It's because there is a new version of bedrock not compatible :
#130 (comment)
I need to fix the version.
if I could remove the bedrock side of things would it work fine?
It should work fine if you use the right commands.
dose bedrock use the same ip or is there a unique one?
it is the same but not working for now.
Did you manage to use the app ?
Did you try using the binaries ?
https://github.com/vincss/mcsleepingserverstarter/blob/master/README.md#-download-the-binaries-easiest