-
Notifications
You must be signed in to change notification settings - Fork 823
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] - Add/yjs socketio #3923
[3851] - Add/yjs socketio #3923
Conversation
…rlabs#3924) * fix:resolves hamburger opening(sugarlabs#3914) * fix:fixes sugarlabs#3914(suggested changes done) * adjust size of grid element repositioning when using aux toolbar --------- Co-authored-by: Walter Bender <[email protected]>
I wonder if you need to say
Just an idea, I'm not really a web developer. I found this suggestion in Mozilla's official JS documentation: The same doc also recommends the .mjs extension for modules, but I have never seen anyone use it: |
@walterbender made commits fixing the installation error, please have a look |
Co-authored-by: anas2357 <[email protected]>
Addresses: #3851
I am trying to install and setup
yjs
andy-socket.io
libraries in Music Blocks. Though I've installed the libraries using npm but I am not able to access them in thecollaboration.js
file or anywhere else.I have tried
import * as Y from "yjs"
(CommonJS) andconst Y = require("yjs")"
(ES module) both the methods but getting errors. Using CommonJS, I am getting the errorCannot use import statement outside a module
, and in ES module, I am gettingrequire not defined
Current Behavior
When I log
Console.log(Y)
, it gives menot defined
error.Expected Behavior
While if library is imported, I will get a
module
as a result ofConsole.log(Y)
If you can provide any insight to sort this issue out, It'd be really helpful.