Skip to content
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

Failed to import - @tiptap/extension-collaboration and @hocuspocus/provider #732

Closed
RicoTrevisan opened this issue Sep 24, 2023 · 2 comments
Labels
browser Not working in Browser

Comments

@RicoTrevisan
Copy link

Failing module

import { Editor } from "https://esm.sh/@tiptap/core";
import StarterKit from "https://esm.sh/@tiptap/starter-kit";

import Collaboration from "https://esm.sh/@tiptap/extension-collaboration"; // only works with @2.0.3?pin=v125
import { TiptapCollabProvider } from "https://esm.sh/@hocuspocus/provider"; // only works with @2.0.0?pin=v125

Error message

After onload I got this:

Uncaught SyntaxError: The requested module '/v132/[email protected]/es2022/crypto-browserify.mjs' does not provide an export named 'webcrypto' (at webcrypto.node.js:1:10)

Additional info

Codepen example: https://codepen.io/ricotrevisan/pen/poqambQ

I'm barely code-literate; I've been learning Javascript while building plugins for a platform called Bubble.io. Be gentle; I'm a rookie.

  • esm.sh version: v125
  • Browser version:
@RicoTrevisan RicoTrevisan added the browser Not working in Browser label Sep 24, 2023
@ije
Copy link
Member

ije commented Sep 24, 2023

thanks, I will look into it.

@RicoTrevisan
Copy link
Author

I wonder if this is useful: I was trying to check if there would be any conflicts if I loaded the libraries from Skypack -- it works: https://codepen.io/ricotrevisan/pen/MWZXGXp

@ije ije closed this as completed in ecf2f59 Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

2 participants