discord-canvas
discord-canvas copied to clipboard
return Canvas._registerFont(fs.realpathSync(src), fontFace)
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)
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 [email protected] 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
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