table icon indicating copy to clipboard operation
table copied to clipboard

Type signatures causing errors in build process

Open BernhardBehrendt opened this issue 1 year ago • 1 comments

Since I've made dependency updates im facing errors caused by type definition file.

Installed version(s):

    "@editorjs/checklist": "^1.6.0",
    "@editorjs/code": "^2.9.0",
    "@editorjs/editorjs": "^2.30.5",
    "@editorjs/header": "^2.8.7",
    "@editorjs/list": "^1.10.0",
    "@editorjs/marker": "^1.4.0",
    "@editorjs/quote": "^2.7.2",
    "@editorjs/table": "^2.4.1",
    "editorjs-tooltip": "^1.2.2",
sc

This line within the file node_modules/@editorjs/table/dist/toolbox.d.ts:29:38 causing the error:

Bildschirmfoto 2024-08-28 um 23 10 53

and modifying it like this solved it.

Bildschirmfoto 2024-08-28 um 23 11 12

BernhardBehrendt avatar Aug 28 '24 21:08 BernhardBehrendt

I'm having the same issue, build fails with:

node_modules/@editorjs/table/dist/toolbox.d.ts:29:48 - error TS2339: Property 'cssModifier' does not exist on type '{}'.

29     constructor({ api, items, onOpen, onClose, cssModifier }: object);

Please advise, thanks!

btroncone avatar Aug 30 '24 02:08 btroncone

I will have look into the issue.

As a temporary workaround you can set skipLibCheck to true in you tsconfig.json

Sozialarchiv avatar Oct 01 '24 06:10 Sozialarchiv