2 in 1: expected input_1 to have 4 dimension(s), but got array with shape [244,244,3]

I am using teachable machine trained model to try and run some images through it using Nodejs.

async() {
    const image = fs.readFileSync('./some.jpg');
    const decodedImage = tfnode.node.decodeImage(image, 3);
    const model = await 
    tf.loadLayersModel(`${url}/model.json`);
    const predictions = await model.predict(decodedImage);
    console.log('predictions:', predictions);
}

When the code runs i get an error "Error when checking : expected input_1 to have 4 dimension(s), but got array with shape [244,244,3]".

Then i tried reshaping decodedImage with const decodedImage = tfnode.node.decodeImage(image, 3).reshape([null, 244, 244, 3]); (if i put 1 instead of null, it doesn't work) and got new error

 "message": "Size(178608) must match the product of shape ,244,244,3"