-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
TypeScript error: Property does not exist on type 'ChainedCommands' #3785
Comments
Hey @songhn233 Do you have all required extensions installed? Does this also happen for commands provided by other extensions? |
@bdbch My package.json: "@tiptap/pm": "2.0.0-beta.218",
"@tiptap/react": "2.0.0-beta.218",
"@tiptap/extension-placeholder": "2.0.0-beta.218",
"@tiptap/starter-kit": "2.0.0-beta.218", And starter-kit will throw error:
|
What kind of Setup are you using / what's your tsconfig looking like? I'm quite confused as I didn't see this issue yet. |
@bdbch Start with vite + react My client tsconfig: {
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"esModuleInterop": false,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"noEmit": true,
"paths": {
"~/*": ["src/*"]
},
"resolveJsonModule": true,
"skipLibCheck": false,
"target": "ESNext",
"types": ["vite/client"]
}
} extended tsconfig: {
"compilerOptions": {
"allowJs": true,
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"keyofStringsOnly": true,
"module": "ES2020",
"moduleResolution": "node",
"removeComments": true,
"resolveJsonModule": true,
"sourceMap": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2019"
},
"exclude": ["**/node_modules/*", "**/dist/*", "scripts/*"]
} Maybe my vscode version will also have an impact? For |
@bdbch Hey, I have resolved this issue. The reason was the impact of blocknote. Specifically, blocknote was using beta.217 underhood while I installed tiptap with beta.218. There might be another reason related to pnpm. After removing blocknote dependencies and using the |
Using |
What’s the bug you are facing?
Same as #2867, But because this problem seems to be repeated, I launched a new issue.
Which browser was this experienced in? Are any special extensions installed?
Chrome Latest
How can we reproduce the bug on our side?
Although I have pin Typescipt version:
But also throw type errors:
Can you provide a CodeSandbox?
No response
What did you expect to happen?
Typescript Correctly
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: