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
Tiptap producing TypeScript errors during type-checking #3579
Comments
This modification inside my project's {
"compilerOptions": {
"paths": {
"@tiptap/core": [
"node_modules/@tiptap/core/src/index"
]
}
}
} |
I realized that this error is caused by a version mismatch between the |
I have the same versions of tiptap packages. {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.209",
"@tiptap/extension-code-block-lowlight": "^2.0.0-beta.209",
"@tiptap/extension-hard-break": "^2.0.0-beta.209",
"@tiptap/extension-link": "^2.0.0-beta.209",
"@tiptap/extension-placeholder": "^2.0.0-beta.209",
"@tiptap/starter-kit": "^2.0.0-beta.209",
"@tiptap/suggestion": "^2.0.0-beta.209",
"@tiptap/vue-3": "^2.0.0-beta.209",
"prosemirror-commands": "~1.3.1",
"prosemirror-dropcursor": "~1.5.0",
"prosemirror-gapcursor": "~1.3.1",
"prosemirror-history": "~1.3.0",
"prosemirror-keymap": "~1.2.0",
"prosemirror-model": "~1.18.1",
"prosemirror-schema-list": "~1.2.2",
"prosemirror-state": "~1.4.1",
"prosemirror-transform": "~1.7.0",
"prosemirror-view": "~1.29.1"
} And here's how it's actually resolved:
|
I do have the same issues and adding a path to "circumvent" the problem is out of the question. Could someone provide a version where this is working correctly? |
I had the same issue, setting all the |
I'm also experiencing this issue. I get this issue even on the earlier beta versions. Adjusting the path in the tsconfig.json file does fix most of them but still getting a few. Please fix this as this is a total showstopper for us. "@tiptap/pm": "2.0.3", ERROR in node_modules/@tiptap/core/src/commands/blur.ts:14:32 With adjusting path: |
This error makes Webstorm unable to resolve most type definitions in node_modules. |
Including index file from core and setting resolutions to fixed versions of prosemirror (you can check what's used in @tiptap/pm) solved the issue for me. |
@stryaponoff I can't manage to solve this as you did with versions 2.0.3. |
@GadiRiversideFM |
@GadiRiversideFM , did you ever figure out the solution? I can't seem to be able to build with 2.0.3 or any of the latest rc's Edit: I found out why i was getting |
What’s the bug you are facing?
Hello! I'm using tiptap in my project. Recently I've tried to set up type-checking using
tsc --noEmit --skipLibCheck
and I've got this output in console:It's not the only error but they all looks the same.
I think the issue is in module augmentation. We have the following interface exported from "@tiptap/core":
And it's augmented in every extension:
But looks like that the interface is not augmented and resulting interface is still empty so other types are not inferred too.
Which browser was this experienced in? Are any special extensions installed?
This is not in the browser side
How can we reproduce the bug on our side?
I don't know
Can you provide a CodeSandbox?
No response
What did you expect to happen?
Tiptap should not be involved into type-checking in my project or it should not produce the errors
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: