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

[3851] - Feat/install socketio yjs #3915

Closed

Conversation

apsinghdev
Copy link
Member

Addresses: #3851

I am trying to install and setup yjs and y-socket.io libraries in Music Blocks. Though I've installed the libraries using npm but I am not able to access them in the collaboration.js file or anywhere else.

I have tried import * as Y from "yjs" (CommonJS) and const Y = require("yjs")" (ES module) both the methods but getting errors. Using CommonJS, I am getting the error Cannot use import statement outside a module, and in ES module, I am getting require not defined

If you can provide any insight to sort this issue out, It'd be really helpfull.

@apsinghdev apsinghdev changed the base branch from master to collaboration June 26, 2024 11:56
@apsinghdev apsinghdev closed this Jun 26, 2024
@apsinghdev apsinghdev deleted the Feat/install-socketio-yjs branch June 26, 2024 11:59
@apsinghdev apsinghdev restored the Feat/install-socketio-yjs branch June 26, 2024 11:59
@apsinghdev apsinghdev reopened this Jun 26, 2024
@apsinghdev apsinghdev closed this Jun 26, 2024
@apsinghdev apsinghdev deleted the Feat/install-socketio-yjs branch June 26, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants