TypeScript Compile Error: A declaration file cannot be imported without 'import type'.
Created by: MarciiTheDev
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