appy-one / acebase

A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications
MIT License
491 stars 27 forks source link

import {} does not work with this package. #203

Closed DoormatIka closed 1 year ago

DoormatIka commented 1 year ago

The error is: error TS2305: Module '"acebase"' has no exported member 'AceBase'. Code: import { AceBase } from "acebase"; A band-aid to this is changing the index.d.ts file from

export * from '../types;
to
export * from '../types/index.js';

package.json

{
  "name": "kogasa-ts",
  ...
  "license": "ISC",
  "type": "module",
  "dependencies": {
    "acebase": "^1.27.0",
    "discord.js": "^14.7.1",
    "dotenv": "^16.0.3",
    "openai": "^3.1.0"
  }
}
appy-one commented 1 year ago

What is your typescript version?

appy-one commented 1 year ago

Closing this issue because there has been no response

Sponsor AceBase Spread the word contribute

appy-one commented 1 year ago

This has been fixed in v1.28.3

Sponsor AceBase Spread the word contribute