[GH-ISSUE #203] import {} does not work with this package. #93

Closed
opened 2026-05-23 08:30:20 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @DoormatIka on GitHub (Jan 7, 2023).
Original GitHub issue: https://github.com/appy-one/acebase/issues/203

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"
  }
}
Originally created by @DoormatIka on GitHub (Jan 7, 2023). Original GitHub issue: https://github.com/appy-one/acebase/issues/203 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" } } ```
Author
Owner

@appy-one commented on GitHub (Jan 8, 2023):

What is your typescript version?

<!-- gh-comment-id:1374873098 --> @appy-one commented on GitHub (Jan 8, 2023): What is your typescript version?
Author
Owner

@appy-one commented on GitHub (Feb 16, 2023):

Closing this issue because there has been no response

Sponsor AceBase Spread the word contribute

<!-- gh-comment-id:1433614727 --> @appy-one commented on GitHub (Feb 16, 2023): Closing this issue because there has been no response [![Sponsor AceBase](https://user-images.githubusercontent.com/26569719/168233053-8e56b243-4140-40ab-9a30-4cb3cc149bfe.svg)](https://github.com/sponsors/appy-one) [![Spread the word](https://user-images.githubusercontent.com/26569719/169265089-3d593555-e1ad-4390-986b-877ac2c38a47.svg)](https://twitter.com/intent/tweet?button=&url=https://github.com/appy-one/acebase&text=I'm+using+@AcebaseRealtime+in+my+project+to+make+my+life+easier!&button=) [![contribute](https://user-images.githubusercontent.com/26569719/169265318-30c4c6a5-7c89-46a0-a7a2-ef433a8192f4.svg)](https://github.com/appy-one/acebase#contributing)
Author
Owner

@appy-one commented on GitHub (Apr 26, 2023):

This has been fixed in v1.28.3

Sponsor AceBase Spread the word contribute

<!-- gh-comment-id:1523994693 --> @appy-one commented on GitHub (Apr 26, 2023): This has been fixed in v1.28.3 [![Sponsor AceBase](https://user-images.githubusercontent.com/26569719/168233053-8e56b243-4140-40ab-9a30-4cb3cc149bfe.svg)](https://github.com/sponsors/appy-one) [![Spread the word](https://user-images.githubusercontent.com/26569719/169265089-3d593555-e1ad-4390-986b-877ac2c38a47.svg)](https://twitter.com/intent/tweet?button=&url=https://github.com/appy-one/acebase&text=I'm+using+@AcebaseRealtime+in+my+project+to+make+my+life+easier!&button=) [![contribute](https://user-images.githubusercontent.com/26569719/169265318-30c4c6a5-7c89-46a0-a7a2-ef433a8192f4.svg)](https://github.com/appy-one/acebase#contributing)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#93
No description provided.