Open euandrelucas opened 3 years ago
code????? -.-
no, it only gave this error when I downloaded the npm
@yADGithub Try re-installing discord-canvas and canvas.
i have it problem too
Ok send me your code pls
@Vozmak
Ok send me your code pls
Hi. The error appears immediately upon require Const Canvas = require("discord-canvas") @xixi52
Try npm uninstall discord-Canvas
then npm i discord-canvas
Try
npm uninstall discord-Canvas
thennpm i discord-canvas
Anyway @Yan-Jobs
Full error
return Canvas._registerFont(fs.realpathSync(src), fontFace) ^
Error: Could not parse font file
at Object.registerFont (C:\Users\HP\Desktop\Текст и войс\node_modules\canvas\index.js:48:17)
at Object.
2s
Do u have this file ? : /assets/fonts/theboldfont.ttf
sec
in canvas or discord-canvas?
Do u have this file ? : /assets/fonts/theboldfont.ttf
Yes, have
Is it empty ?
no
Ah
font in my language in this file
sry for my english
Try copy all your files in a new directory but don’t copy this files: package-lock.json or yarn.lock node_modules folder
sry for my english
I don’t care I am french 13 yrs old lmao
Try copy all your files in a new directory but don’t copy this files: package-lock.json or yarn.lock node_modules folder
And reinstall dependency with npm init -y
Or yarn (I think)
and npm install
or yarn install
ok, i try it later, thx
Anyway, i create absolutly new project and anyway error @Yan-Jobs
Ah euh that’s not a good thing
yes( very good npm, but dont work, ah
xD
Tomorrow I will dm the creator and ask him your problem
Ok, thx
DMed @Vozmak
DMed @Vozmak
Ok, I wait @Yan-Jobs
@xixi52 c’est là xD
Enfin tu peux aussi voir les autres lmao
(process:12152): Pango-WARNING **: 18:08:16.010: couldn't load font "Keep Calm Medium Not-Rotated 37px", falling back to "Sans Medium Not-Rotated 37px", expect ugly output.
The fonts don't load. Even while they are in the right place. I even installed the fonts on my windows server just in case.
EDIT: I just turned off the font register and installed the fonts on my windows servers, changed the names how they are seen by windows. Works fine now.
return Canvas._registerFont(fs.realpathSync(src), fontFace) ^
Error: Could not parse font file at Object.registerFont (C:\Users\Home\Desktop\Secretaria\Discord\Programação\Bots\star\star-developer\node_modules\canvas\index.js:48:17) (C:\Users\Home\Desktop\Secretaria\Discord\Programação\Bots\star\star-developer\node_modules\discord-canvas\index.js:3:8) (C:\Users\Home\Desktop\Secretaria\Discord\Programação\Bots\star\star-developer\src\commands\Others\fnshop.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at C:\Users\Home\Desktop\Secretaria\Discord\Programação\Bots\star\star-developer\bot.js:100:21
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! star@1.0.0 start:
at Object.
at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.
node bot.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the star@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Home\AppData\Roaming\npm-cache_logs\2021-01-07T15_18_05_141Z-debug.log