Skip to content

Optional dependency error #41

@zAlweNy26

Description

@zAlweNy26

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions