Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 8, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Optional dependency error</issue_title>
<issue_description>### Describe the bug

I don't need to use the vue-use-monaco package, but I still get it as an error.

 Uncaught (in promise) Error: Optional dependency "vue-use-monaco" is not installed. Please install it to enable code editor features.
    getUseMonaco index.js:2511
    rejected index.js:43
18 index.js:2511:13

Do you think it shouldn't just advise you with a warning as the package is optional?
Also it would be nice the warning to appear only in dev mode and not in production.

Reproduction

Start a project without installing vue-use-monaco

System Info

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 PRO 7730U with Radeon Graphics
    Memory: 26.18 GB / 61.61 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 22.17.1 - ~/.nvm/versions/node/v22.17.1/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.17.1/bin/npm
    pnpm: 10.17.1 - ~/.nvm/versions/node/v22.17.1/bin/pnpm
    bun: 1.2.22 - ~/.bun/bin/bun
  Browsers:
    Chromium: 140.0.7339.185

Used Package Manager

pnpm

Logs

No response</issue_description>

Comments on the Issue (you are @copilot in this section)

@Simon-He95 Try the latest version. If vue-use-monaco is not installed, it will use preCodeNode rendering instead. Of course, you can also use a custom code_block component to override it. @zerob13 Could you please provide a minimal reproducible demo repository for this issue? It would really help us understand and troubleshoot the problem more efficiently. Thank you very much!
Fixes #41

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for vue-markdown-renderer canceled.

Name Link
🔨 Latest commit 664c5d7
🔍 Latest deploy log https://app.netlify.com/projects/vue-markdown-renderer/deploys/68e644113b1cde000824fb8a

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.

Optional dependency error

2 participants