Closed suhail-ak-s closed 4 weeks ago
How did you solve this i having the same problem
How did you solve this i having the same problem
It looks like a problem with version 2.30.1. Downgrade version to 2.29.1
hi! has anyone solved this problem?
We're working on the fix. It will be ready in 1-2 days.
will you fix it soon?
Do we happen to have any updates on this? Thanks!
Hey @neSpecc, we are a bit blocked waiting on the solution. Have you made any progress on this?
Error: node_modules/@editorjs/editorjs/types/api/tools.d.ts:1:34 - error TS2307: Cannot find module '@/types/tools/adapters/block-tool-adapter' or its corresponding type declarations.
import { BlockToolAdapter } from '@/types/tools/adapters/block-tool-adapter';
Error: node_modules/@editorjs/editorjs/types/tools/menu-config.d.ts:1:10 - error TS2305: Module '"../configs"' has no exported member 'PopoverItemDefaultBaseParams'.
import { PopoverItemDefaultBaseParams, PopoverItemHtmlParams, PopoverItemParams, PopoverItemSeparatorParams, WithChildren } from "../configs";
Error: node_modules/@editorjs/editorjs/types/tools/menu-config.d.ts:1:40 - error TS2305: Module '"../configs"' has no exported member 'PopoverItemHtmlParams'.
import { PopoverItemDefaultBaseParams, PopoverItemHtmlParams, PopoverItemParams, PopoverItemSeparatorParams, WithChildren } from "../configs";
Error: node_modules/@editorjs/editorjs/types/tools/menu-config.d.ts:1:63 - error TS2305: Module '"../configs"' has no exported member 'PopoverItemParams'.
import { PopoverItemDefaultBaseParams, PopoverItemHtmlParams, PopoverItemParams, PopoverItemSeparatorParams, WithChildren } from "../configs";
Error: node_modules/@editorjs/editorjs/types/tools/menu-config.d.ts:1:82 - error TS2305: Module '"../configs"' has no exported member 'PopoverItemSeparatorParams'.
import { PopoverItemDefaultBaseParams, PopoverItemHtmlParams, PopoverItemParams, PopoverItemSeparatorParams, WithChildren } from "../configs";
Error: node_modules/@editorjs/editorjs/types/tools/menu-config.d.ts:1:110 - error TS2305: Module '"../configs"' has no exported member 'WithChildren'.
import { PopoverItemDefaultBaseParams, PopoverItemHtmlParams, PopoverItemParams, PopoverItemSeparatorParams, WithChildren } from "../configs";
Issue still persists even after update. All other packages are up to date.
menu-config.d.ts needs to have imports as:
import { PopoverItemDefaultBaseParams, WithChildren, PopoverItemSeparatorParams, PopoverItemHtmlParams } from "@editorjs/editorjs/types/utils/popover";
This solves this issue.
tools.d.ts BlockToolAdapter can't find module from:
import { BlockToolAdapter } from '@/types/tools/adapters/block-tool-adapter';
Not sure how to solve this though. Can't find the BlockToolAdapter at all.
These are the leftover issues.
Build also throws warnings related to editorJS:
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/configs/conversion-config.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/data-formats/block-id.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/Base.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/BlockAdded.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/BlockChanged.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/BlockMoved.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/BlockRemoved.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/events/block/index.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/utils/popover/popover-event.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning:
C:/Company/Angular/ClientWeb/ClientApp/node_modules/@editorjs/editorjs/types/utils/popover/popover-item-type.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
While installing editorjs in angular 18 version it is showing the type error for importing few files `✘ [ERROR] TS2307: Cannot find module '../../src/components/block' or its corresponding type declarations. [plugin angular-compiler]
`✘ [ERROR] TS2307: Cannot find module '../../src/components/tools/block' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../../src/components/utils/popover' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../src/components/utils/popover' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemDefaultBaseParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemHtmlParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemSeparatorParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'WithChildren'. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../../src/components/block' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../../src/components/tools/block' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../../src/components/utils/popover' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2307: Cannot find module '../src/components/utils/popover' or its corresponding type declarations. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemDefaultBaseParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemHtmlParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'PopoverItemSeparatorParams'. [plugin angular-compiler]
✘ [ERROR] TS2305: Module '"../configs"' has no exported member 'WithChildren'. [plugin angular-compiler]
Steps to reproduce:
Device, Browser, OS: Macbook m3 pro
Editor.js version: 2.30.1