So I was following a NodeJS tutorial.
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const adapter = new FileSync('db.json')
const db = low(adapter)
I tried using this:
import {default as lowdb} from 'lowdb'
This:
import lowdb from 'lowdb'
It all throws errors.
Am a bit confused on how to use it in the new way of import
than the require
which is depreciated.