yjs / yjs-demos

A collection of demos for Yjs
https://demos.yjs.dev
The Unlicense
750 stars 120 forks source link

Monaco demo: Error: Unknown option '--open-page' #62

Closed batchor closed 5 months ago

batchor commented 5 months ago

Checklist

Describe the bug I couldn't run the monaco demo because of a webpack error.

To Reproduce Steps to reproduce the behavior:

  1. Go to yjs-demos/monaco
  2. Install deps via: npm i
  3. Run the demo npm start and then press yes when prompting to install webpack.
  4. See error

Screenshots image

Environment Information

Output of npx webpack version:

System:
    OS: macOS 14.1.1
    CPU: (24) arm64 Apple M2 Ultra
    Memory: 797.36 MB / 64.00 GB
  Binaries:
    Node: 21.7.3 - /opt/homebrew/bin/node
    npm: 10.5.0 - /opt/homebrew/bin/npm
  Browsers:
    Safari: 17.1
  Packages:
    css-loader: ^6.8.1 => 6.8.1 
    monaco-editor-webpack-plugin: ^7.1.0 => 7.1.0 
    style-loader: ^3.3.3 => 3.3.3

Additional context I guess it was caused by an incompatible webpack because there is no webpack version specification in package.json and the latest version was instelled.

dmonad commented 5 months ago

Thanks for letting me know!

i forgot to push a commit. You need to npm i in the root directory as well. In the last commit I also updated a lot of dependencies. Can you please check it out and let me know if it fixes the problem?

batchor commented 5 months ago

Thanks for your prompt response. Yes, it has been fixed and I think the issue is safe to close.