unplugin / unplugin-icons

šŸ¤¹ Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.65k stars 131 forks source link

Vue 2 examples won't run #328

Open bmulholland opened 7 months ago

bmulholland commented 7 months ago

Describe the bug

I'm trying to create a minimal repro for another bug, as requested. I'm trying to start with one of the examples from this repo and they won't work.

To repro:

  1. Clone this repro
  2. Build repo
  3. cd to examples for vue2 vite of vue cli
  4. pnpm install
  5. pnpm dev

This errors out: Vue packages version mismatch:

This may cause things to work incorrectly. Make sure to use the same version for both. If you are using vue-loader@>=10.0, simply update vue-template-compiler. If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

  at Object.<anonymous> (/Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/vue-template-compiler@2.7.14/node_modules/vue-template-compiler/index.js:10:9)
  at Module._compile (node:internal/modules/cjs/loader:1241:14)
  at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
  at Module.load (node:internal/modules/cjs/loader:1091:32)
  at Module._load (node:internal/modules/cjs/loader:938:12)
  at cjsLoader (node:internal/modules/esm/translators:284:17)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:234:7)
  at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
  at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
  at async importModule (file:///Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/local-pkg@0.5.0/node_modules/local-pkg/dist/index.mjs:303:13)

Reproduction

this repo

System Info

System:
    OS: macOS 14.1.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 255.94 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - ~/.asdf/installs/nodejs/20.9.0/bin/node
    npm: 10.2.4 - ~/.asdf/plugins/nodejs/shims/npm
    Watchman: 2023.11.13.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 119.0.6045.159
    Edge: 119.0.2151.72
    Firefox: 119.0.1
    Safari: 17.1

Used Package Manager

pnpm

Validations