-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to integrate Editorjs with Angular #1183
Comments
I also have the same bug |
Me too... My CI log ends with
This happened when I updated EditorJS today. |
Same here when I updated dependencies. Install and force a previous version of editorjs (and plugins) with package.json worked for me until they will patch the error:
and then:
|
There's a slightly easier way, just ask npm to install an exact version: npm install @editorjs/editorjs@2.17.0 Don't forget to install the latest version when the fix for this issue is available ( |
@tommiv, @juanmigonzalez thanks, works for me |
I've investigated the issue and because I think it we can fix this by moving the type file from Proof: Testing by simply adding I can add a PR with the changes if I have the approval from you guys. Thanks! FYI: For me, the previous fix is not a solver, because PS:
|
Thanks for the workaround @tiberiumihai you saved me from stalling progress on an important feature! Would be keen to see this PR'd and corrected quickly! |
Is this fixed with latest version? I have made some changes to this project and built and linked it, it all works fine locally, built I have built the project with the |
Getting the same error. Seems like no type definitions files ( |
@RicoBrase my workaround was to follow on what @tiberiumihai suggested:
|
@Teebo Currently working on an easy workaround PR by modifying the |
@RicoBrase Great! |
Thanks fixed |
This is the error I get:
ERROR in node_modules/@editorjs/editorjs/types/api/block.d.ts:2:25 - error TS2307: Cannot find module '../../src/types-internal/block-data'.
import {SavedData} from '../../src/types-internal/block-data';
So basically it's trying to import from src folder, but there is no src folder in the @editorjs/editorjs when i use the 'npm install @editorjs/editorjs --save-dev'.
I am aware that there is an ngx-editorjs package, but I'm really frustrated by this issue.
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered: