Comments (35)
code?????
-.-
from discord-canvas.
no, it only gave this error when I downloaded the npm
from discord-canvas.
@yADGithub Try re-installing discord-canvas and canvas.
from discord-canvas.
i have it problem too
from discord-canvas.
Ok send me your code pls
from discord-canvas.
from discord-canvas.
Ok send me your code pls
Hi. The error appears immediately upon require
Const Canvas = require("discord-canvas") @xixi52
from discord-canvas.
Try npm uninstall discord-Canvas
then npm i discord-canvas
from discord-canvas.
Try
npm uninstall discord-Canvas
thennpm i discord-canvas
Anyway @Yan-Jobs
from discord-canvas.
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. (C:\Users\HP\Desktop\Текст и войс\node_modules\discord-canvas\index.js:3:8)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (C:\Users\HP\Desktop\Текст и войс\commands!profile.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at C:\Users\HP\Desktop\Текст и войс\index.js:38:21
from discord-canvas.
2s
from discord-canvas.
Do u have this file ? : /assets/fonts/theboldfont.ttf
from discord-canvas.
sec
from discord-canvas.
in canvas or discord-canvas?
from discord-canvas.
Do u have this file ? : /assets/fonts/theboldfont.ttf
from discord-canvas.
Is it empty ?
from discord-canvas.
no
from discord-canvas.
Ah
from discord-canvas.
font in my language in this file
from discord-canvas.
sry for my english
from discord-canvas.
Try copy all your files in a new directory but don’t copy this files: package-lock.json or yarn.lock node_modules folder
from discord-canvas.
sry for my english
I don’t care I am french 13 yrs old lmao
from discord-canvas.
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
from discord-canvas.
ok, i try it later, thx
from discord-canvas.
Anyway, i create absolutly new project and anyway error @Yan-Jobs
from discord-canvas.
Ah euh that’s not a good thing
from discord-canvas.
yes( very good npm, but dont work, ah
from discord-canvas.
xD
from discord-canvas.
Tomorrow I will dm the creator and ask him your problem
from discord-canvas.
Ok, thx
from discord-canvas.
DMed @Vozmak
from discord-canvas.
DMed @Vozmak
Ok, I wait @Yan-Jobs
from discord-canvas.
@xixi52 c’est là xD
from discord-canvas.
Enfin tu peux aussi voir les autres lmao
from discord-canvas.
(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.
from discord-canvas.
Related Issues (20)
- How to get rid of guildname message and box? HOT 45
- xp and needed xp? HOT 1
- Not working HOT 2
- Error: Unsupported image type HOT 2
- v13 is broken HOT 7
- Cannot find module 'moment' HOT 3
- Welcome Message HOT 2
- Developer Response HOT 1
- Image size in fortniteShop() HOT 1
- fontconfig error cannot load default config file
- server responded with 404 HOT 1
- Outdated HOT 1
- Not able to install fix it please HOT 2
- Not able to install fix it please HOT 1
- I don't understand the mistake HOT 3
- Documentation website down
- can't require the package HOT 4
- TypeError: Cannot read properties of undefined (reading 'Attachment') HOT 1
- Error: Unsupported image type HOT 7
- when i try to make a welcome card HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-canvas.