-
Notifications
You must be signed in to change notification settings - Fork 789
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
Cannot find module '@umbraco-cms/backoffice/tiptap' #6767
Comments
Thanks for reporting this @erikjanwestendorp ! 💪 I'll run this b our frontend developers, to get it verified. What specific version of Umbraco are you using? Is it 15.1.1? |
@sofietoft Sorry, my mistake. For some reason, I had a very old version of @umbraco-cms/backoffice, but now I’m facing a different issue. First, I follow the Vite package setup as described here: https://docs.umbraco.com/umbraco-cms/customizing/development-flow/vite-package-setup. After that, I follow the steps in: However, after following these steps, I get the following console errors:
and
So, I updated the umbraco-package.json like so (change api path to client.js): {
"name": "My Tiptap Extension",
"version": "1.0.0",
"extensions": [
{
"type": "tiptapExtension",
"alias": "My.Tiptap.Highlight",
"name": "My Highlight Tiptap Extension",
"api": "/App_Plugins/MyTiptapExtension/client.js",
"meta": {
"icon": "icon-thumbnail-list",
"label": "Highlight",
"group": "#tiptap_extGroup_formatting"
}
},
{
"type": "tiptapToolbarExtension",
"kind": "button",
"alias": "My.Tiptap.Toolbar.TaskList",
"name": "My Highlight Tiptap Toolbar Extension",
"api": "/App_Plugins/MyTiptapExtension/client.js",
"meta": {
"alias": "highlight",
"icon": "icon-brush",
"label": "Highlight"
}
}
]
} But then I get this:
My vite.config.ts looks like this: import { defineConfig } from "vite";
export default defineConfig({
build: {
lib: {
entry: "src/index.ts",
formats: ["es"],
},
outDir: "../../MyProject/App_Plugins/MyTiptapExtension",
emptyOutDir: true,
sourcemap: true,
rollupOptions: {
external: [/^@umbraco/],
},
},
base: "/App_Plugins/MyTiptapExtension/",
}); And my index.ts like this: export * from './highlight.tiptap-api';
export * from './highlight.tiptap-toolbar-api'; |
@erikjanwestendorp Thank you for testing out the Tiptap extension documentation steps, sorry that you've experienced issues with it. I've re-reviewed the steps and there is room for improvements on how to set-up the initial structure for an Umbraco extension/package. Hopefully the latest (but currently undocumented) In the meantime, the issue you've experienced is with referencing the The current way to workaround this would be to use the This approach will align nicely with the latest @sofietoft This is the work item that the Community Package Team has for updating the documentation for the new |
Thanks for the insights @leekelleher ! 😄 Let me know if you anything from me team, regarding the umbraco-extensions template docs 🙌 |
What type of issue is it? (Choose one - delete the others)
Wrong documentation
What article/section is this about?
rich-text-editor/extensions
Describe the issue
When attempting to add the following code sample:
Cannot find module '@umbraco-cms/backoffice/tiptap' or its corresponding type declarations.
The text was updated successfully, but these errors were encountered: