I had the same problem, it seems that the code in the tutorial contains a UNIX-like syntax when using `~` in the "qrcodes.$id.jsx" file.The update you need to do: // this is th old line:
// import { getQRCodeImage } from "~/models/QRCode.server";
//...