TypeScript Compile Error: A declaration file cannot be imported without 'import type'. #1

Closed
opened 2023-07-18 15:36:44 +00:00 by MarciiTheDev · 1 comment
MarciiTheDev commented 2023-07-18 15:36:44 +00:00 (Migrated from github.com)

Using: marcsync@1.1.1-devhotfix

When trying to compile a TypeScript project which uses the marcsync Package, it crashes with this error:

node_modules/marcsync/dist/index.d.ts:1:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './Collection' instead?

1 export * from "./Collection.d.ts"
                ~~~~~~~~~~~~~~~~~~~

node_modules/marcsync/dist/index.d.ts:2:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './Entry' instead?

2 export * from "./Entry.d.ts"
                ~~~~~~~~~~~~~~

node_modules/marcsync/dist/index.d.ts:3:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './marcsync' instead?

3 export * from "./marcsync.d.ts"
                ~~~~~~~~~~~~~~~~~

node_modules/marcsync/dist/index.d.ts:4:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './SubscriptionManager' instead?

4 export * from "./SubscriptionManager.d.ts"
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 4 errors in the same file, starting at: node_modules/marcsync/dist/index.d.ts:1
**Using: [marcsync@1.1.1-devhotfix](https://www.npmjs.com/package/marcsync/v/1.1.1-devhotfix)** When trying to compile a TypeScript project which uses the `marcsync` Package, it crashes with this error: ``` node_modules/marcsync/dist/index.d.ts:1:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './Collection' instead? 1 export * from "./Collection.d.ts" ~~~~~~~~~~~~~~~~~~~ node_modules/marcsync/dist/index.d.ts:2:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './Entry' instead? 2 export * from "./Entry.d.ts" ~~~~~~~~~~~~~~ node_modules/marcsync/dist/index.d.ts:3:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './marcsync' instead? 3 export * from "./marcsync.d.ts" ~~~~~~~~~~~~~~~~~ node_modules/marcsync/dist/index.d.ts:4:15 - error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './SubscriptionManager' instead? 4 export * from "./SubscriptionManager.d.ts" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Found 4 errors in the same file, starting at: node_modules/marcsync/dist/index.d.ts:1 ```
MarciiTheDev commented 2023-07-18 15:41:42 +00:00 (Migrated from github.com)

Resolved with marcsync@v1.1.2-dev

**Resolved with [marcsync@v1.1.2-dev](https://github.com/MarciiTheDev/marcsync-nodejs-client/releases/tag/v1.1.2-dev)**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MarcSync/nodejs-client#1
No description provided.