Coder Social home page Coder Social logo

Comments (5)

Mednoob avatar Mednoob commented on September 2, 2024 1

Yeah, I've been noticed about this by another team member of the project yesterday. Same as you, I'm still unable to use the loader thingy. I can't understand a thing from the docs.

For now, you can use the fix you detailed in your issue as a workaround while we try to fix this.

from rawon.

Mednoob avatar Mednoob commented on September 2, 2024

This should be fixed with the latest commit I did.

from rawon.

ricky8k avatar ricky8k commented on September 2, 2024

This should be fixed with the latest commit I did.

I appreciate your time on fixing this issue. Unfortunately, I'm still unable to run Rawon on the latest commit. I ran a new install of Rawon with Node v20.10.0 and v20.11.0 (latest LTS) and was unable to start it:

user@mihari:~/rawon$ npm start

> [email protected] start
> node --es-module-specifier-resolution=node -r dotenv/config .

[INFO] Couldn't find FFmpeg/avconv, trying to install ffmpeg-static...
[INFO] ffmpeg-static has been installed.
[INFO] Starting the bot...
[2024-01-13 20:51:54 (-05)] [info]: [ShardManager] Shard #0 has spawned.
[2024-01-13 20:51:54 (-05)] [info]: [ShardManager] All shards are spawned successfully.
[2024-01-13 20:51:58 (-05)] [info]: Loading 10 events...
[2024-01-13 20:51:59 (-05)] [info]: Events on listener channelUpdate has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener debug has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener error has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener guildBanAdd has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener guildBanRemove has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener interactionCreate has been added.
[2024-01-13 20:51:59 (-05)] [info]: Events on listener messageCreate has been added.
[2024-01-13 20:51:59 (-05)] [error]: EVENTS_LOADER_ERR: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './locale/index.js' is not defined by "exports" in /home/user/rawon/node_modules/date-fns/package.json imported from /home/user/rawon/dist/utils/functions/formatMS.js
[2024-01-13 20:51:59 (-05)] [info]: Done loading events.

I did manage to fix the event load error it by reverting the const declaration change for locales in src/formatMS.js from the recent commits (ricky8k@b7bcf95). Unfortunately, my fix isn't completely stable. Sometimes, Rawon will stall after loading events:

user@mihari:~/rawon$ npm start

> [email protected] start
> node --es-module-specifier-resolution=node -r dotenv/config .

[INFO] Starting the bot...
[2024-01-13 21:05:29 (-05)] [info]: [ShardManager] Shard #0 has spawned.
[2024-01-13 21:05:29 (-05)] [info]: [ShardManager] All shards are spawned successfully.
[2024-01-13 21:05:33 (-05)] [info]: Loading 10 events...
[2024-01-13 21:05:33 (-05)] [info]: Events on listener channelUpdate has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener debug has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener error has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener guildBanAdd has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener guildBanRemove has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener interactionCreate has been added.
[2024-01-13 21:05:33 (-05)] [info]: Events on listener messageCreate has been added.
[2024-01-13 21:05:35 (-05)] [info]: Events on listener ready has been added.
[2024-01-13 21:05:35 (-05)] [info]: Events on listener voiceStateUpdate has been added.
[2024-01-13 21:05:35 (-05)] [info]: Events on listener warn has been added.
[2024-01-13 21:05:35 (-05)] [info]: Done loading events.

When it wasn't stalled, it loaded the necessary commands and Rawon would work without issue. From what I could observe, it boots properly about 5 minutes after Rawon is stopped.

from rawon.

Mednoob avatar Mednoob commented on September 2, 2024

Thanks for the report, I just fixed it. Try it again.

from rawon.

ricky8k avatar ricky8k commented on September 2, 2024

Rawon works without a problem now. Thank you!

from rawon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.