0

Id like to use import to import the database. Is this possible?

import Database from "@replit/database"

This doesn't work

I tried that without "@" and with other variations, but with no success

Venixi
  • 1
  • https://www.npmjs.com/package/@replit/database doesn't seem to support ESM. Try using `const Client = require("@replit/database");` instead? – evolutionxbox Mar 20 '23 at 16:17
  • Please provide enough code so others can better understand or reproduce the problem. – Community Mar 21 '23 at 05:14

0 Answers0