Closed batchor closed 2 months ago
@batchor npm run dist
fixed this for me
@suurkivi Oh, that worked! Thanks for the fix.
@dmonad Can we also add this into README.md?
I wonder if there is a better way to bundle monaco. The production bundle is above 3MB, and there are all these weird issues.. If anyone knows, please let me know. I'd be happy to use another bundler if that's what people do.
I fixed the start
script by checking if the monaco.bundle.js
exists.
I couldn't setup the monaco demo due to 404 not found error of
dist/monaco.bundle.js
.The editor area is not editable and I got the error in the console.
Screenshot:
Terminal log
Steps to reproduce:
cd yjs-demos && npm i
monaco
subdirectory and install deps:cd monaco && npm i
npm run start
and then go to browser.Environment to reproduce
I tried two different environments with the same error:
node --version v20.5.1
uname -a Darwin macstudio 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64
node --version v21.7.3