Closed aleclarson closed 2 years ago
import 'tsconfig-paths/register' import { open } from 'lmdb'
Error: Cannot find module '~/node_modules/lmdb/dist/index'
The exports field of lmdb looks like this:
exports
"type": "module", "main": "dist/index.cjs", "module": "index.js", "exports": { ".": { "node": { "require": "./dist/index.cjs", "import": "./node-index.js" }, "default": "./index.js" } },
I can confirm that #139 fixes this issue
@aleclarson Does this work now in 3.13.0?
Yes, thank you!
The
exports
field of lmdb looks like this: