GD-Pixel-Art icon indicating copy to clipboard operation
GD-Pixel-Art copied to clipboard

TypeError: Jimp.read is not a function

Open Tmonitor745 opened this issue 1 year ago • 1 comments

When I try to run the program this happens. Maybe the function was deprecated? Idk im a python guy not a js guy

Tmonitor745 avatar Dec 02 '24 00:12 Tmonitor745

I was able to solve this issue by replacing

const Jimp = require('jimp');

with

const { Jimp } = require('jimp');

Something about a new declaration method in Jimp, which the program has not been updated to accomodate.

ABjokern avatar Jan 09 '25 23:01 ABjokern