How to use sqlite3 on wrangler3.20.0
I get this error when I try to use sqlite3:
✘ [ERROR] Could not resolve "mock-aws-s3"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28:
43 │ const AWSMock = require('mock-aws-s3');
I get this for 'aws-sdk', "nock"
5 Replies
Is this for a Worker?
You can't run
sqlite3
in a WorkerYeah workers
Is there any other way to use sqlite
Or any other database
You can use D1 in Workers which is based off sqlite https://developers.cloudflare.com/d1/get-started/
Get started · Cloudflare D1 docs
This guide will instruct you through:
Thx