-
Notifications
You must be signed in to change notification settings - Fork 349
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
TS Compile-time errors on view.d.ts and types.d.ts #619
Comments
Hi! Same here. This is preventing us to use Jodit with NextJS (TS 4.1.3) or other cool React frameworks. Hopefully this amazing editor gets fixed for the latest TS version. |
@Fedeorlandau I have that code in Jodit interface IComponent extends IDestructible {
ownerDocument: Document;
od: this['ownerDocument']; // short alias for ownerDocument
ownerWindow: Window;
ow: this['ownerWindow']; // short alias for ownerWindow
options: SomeType;
o: this['options']; // short alias for options
}
interface IJodit extends IComponent {
options: SomeExtendedType;
// o - here i can not duplicate the code
} How should I change the type annotation so that you don't have errors? |
@xdan Do you need to use What about ownerDocument: Document;
od: Document; // short alias for ownerDocument
ownerWindow: Window;
ow: Window; // short alias for ownerWindow etc... Seems easier to read this way too. |
@dylang In the second example, I redefined which linter rule is causing you this error? And what linter? |
Hi! Some findings First, all of us should add:
to our tsconfig.json file. This flag will let you build your project nicely. Second, if you set this to false, you'll start to get some TS issues from Jodit (and any other package in your node_modules/). I'll enumerate a few.
This is the tsconfig file create-react-app provides by default.
We should add Cheers! |
doesnt work, still getting errors with nextjs
|
I got the same compilation error here in React App, Does anyone knows how to fix it? tsconfig.json
Failed to compile
|
I have same problem, some tips to solve ? |
Any progress on this? |
Fixed here #718 |
#718 - where is the fix ? It's only closed.. |
Not sure it's a great final solution but |
Jodit Version: 3.5.4 (latest)
Jodit-react Version: 1.0.70 (latest)
Browser: All
OS: Windows
Is React App: True
Code
Expected behavior:
Compile with no errors
Actual behavior:
Compile-time errors
TypeScript version:
4.1.2
Notes:
The text was updated successfully, but these errors were encountered: