Try `npx wrangler@3.4 <your commands>` and report back
Try
npx wrangler@3.4 <your commands> and report backnpx wrangler@3.4 <your commands>D1Database wrangler deploy this.client.prepare is not a functionwrangler commands you're invoking? Here's a working Remix demo app: https://github.com/elithrar/remix-plus-d1
--local flag? Please be precise wrangler d1 execute <database name> --command <SQL here>wrangler connect <database name>d1-console -d <Name> is forD1Databasewrangler deploythis.client.prepare is not a functionwrangler--local