Giter Club home page Giter Club logo

Comments (11)

warix8 avatar warix8 commented on August 29, 2024

Glad to know that you want to use my module 😄

It seems that there is a problem with the canvas installation.
Maybe you can try to install canvas first.
I assume that you are on Windows, so you can check this canvas guide for windows installation https://github.com/Automattic/node-canvas/wiki/Installation:-Windows

I hope this will solve your problem

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

Glad to know that you want to use my module 😄

It seems that there is a problem with the canvas installation. Maybe you can try to install canvas first. I assume that you are on Windows, so you can check this canvas guide for windows installation https://github.com/Automattic/node-canvas/wiki/Installation:-Windows

I hope this will solve your problem

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

wait, isnt canvas outdated package? i heard about it in djs supportive server

from discord-bot-stats.

warix8 avatar warix8 commented on August 29, 2024

I've never heard of it and I don't see it on the internet now. There are always 800k downloads of canvas per week on npm.
I don't know who said that but I don't think that's the case.
Also, did you get the package to work?

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

didnt work while following the steps to download canvas in https://www.youtube.com/watch?v=SletQOmrhcM

from discord-bot-stats.

warix8 avatar warix8 commented on August 29, 2024

Are you sure that node-gyp is installed ? https://github.com/nodejs/node-gyp#on-windows

If yes, can you give me your:

  • NodeJs version
  • node-gyp version

The issue in canvas are often related to node-gyp. So you can try to do node-gyp rebuild or reinstall it and verify that it is installed globally.

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

my node.js version is 18.4.0
node-gyp 9.1.0
image

from discord-bot-stats.

warix8 avatar warix8 commented on August 29, 2024

It's really strange, but you can try a node-gyp rebuild then if it's not working try this

npm uninstall node-pre-gyp -g --save
npm install @mapbox/node-pre-gyp -g --save

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

well its not working either. could u use other packages rather using canvas like canvacord?

from discord-bot-stats.

warix8 avatar warix8 commented on August 29, 2024

It's a bit hard, because I'm using chart.js to make graph and it depends of canvas.

But, I'm sure that you can fix your issue by searching your errors on Internet et try some fixes.

Nevertheless, I will have a look if I can fork chartjs and try to use an other canvas like canvacord.

from discord-bot-stats.

Wreaking avatar Wreaking commented on August 29, 2024

okay i will try to fix it thx

from discord-bot-stats.

Related Issues (1)

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.